diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cc3beea..e9da56e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -413,6 +413,37 @@ jobs: set -e yarn test + test-freebsd: + runs-on: macos-12 + name: NodeJS 20 on x86_64-unknown-freebsd + steps: + - uses: actions/checkout@v4 + - name: Build + id: build + uses: cross-platform-actions/action@v0.21.1 + timeout-minutes: 30 + env: + DEBUG: 'napi:*' + RUSTUP_IO_THREADS: 1 + with: + operating_system: freebsd + version: '13.2' + memory: 8G + cpu_count: 3 + environment_variables: 'DEBUG RUSTUP_IO_THREADS' + shell: bash + run: | + sudo pkg install -y -f curl node libnghttp2 npm + sudo npm install -g yarn --ignore-scripts + curl https://sh.rustup.rs -sSf --output rustup.sh + sh rustup.sh -y --profile minimal --default-toolchain stable + source "$HOME/.cargo/env" + cd bindings/javascript + yarn install + yarn build + strip -x *.node + yarn test + test-python: strategy: fail-fast: false diff --git a/bindings/javascript/CHANGELOG.md b/bindings/javascript/CHANGELOG.md index 29f13d1f..0300c187 100644 --- a/bindings/javascript/CHANGELOG.md +++ b/bindings/javascript/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Added + +- Package for `x86_64-unknown-freebsd`. + ## [0.13.2] - 2024-03-25 ### Changed diff --git a/bindings/javascript/npm/freebsd-x64/README.md b/bindings/javascript/npm/freebsd-x64/README.md new file mode 100644 index 00000000..f7748e5d --- /dev/null +++ b/bindings/javascript/npm/freebsd-x64/README.md @@ -0,0 +1,3 @@ +# `@css-inline/css-inline-freebsd-x64` + +This is the **x86_64-unknown-freebsd** binary for `@css-inline/css-inline` diff --git a/bindings/javascript/npm/freebsd-x64/package.json b/bindings/javascript/npm/freebsd-x64/package.json new file mode 100644 index 00000000..ea72969a --- /dev/null +++ b/bindings/javascript/npm/freebsd-x64/package.json @@ -0,0 +1,31 @@ +{ + "name": "@css-inline/css-inline-freebsd-x64", + "version": "0.13.2", + "description": "High-performance library for inlining CSS into HTML 'style' attributes", + "keywords": [ + "css", + "html", + "email", + "stylesheet", + "inlining" + ], + "repository": "https://github.com/Stranger6667/css-inline", + "publishConfig": { + "registry": "https://registry.npmjs.org/", + "access": "public" + }, + "os": [ + "freebsd" + ], + "cpu": [ + "x64" + ], + "main": "css-inline.freebsd-x64.node", + "files": [ + "css-inline.freebsd-x64.node" + ], + "license": "MIT", + "engines": { + "node": ">= 10" + } +}