Skip to content

Commit e2a407e

Browse files
committed
build(javascript): Build artefacts for FreeBSD
1 parent ee538f2 commit e2a407e

File tree

4 files changed

+82
-0
lines changed

4 files changed

+82
-0
lines changed

Diff for: .github/workflows/build.yml

+44
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,50 @@ jobs:
413413
set -e
414414
yarn test
415415
416+
build-freebsd:
417+
runs-on: macos-12
418+
name: Build FreeBSD
419+
steps:
420+
- uses: actions/checkout@v4
421+
- name: Build
422+
id: build
423+
uses: cross-platform-actions/[email protected]
424+
timeout-minutes: 30
425+
env:
426+
DEBUG: 'napi:*'
427+
RUSTUP_IO_THREADS: 1
428+
with:
429+
operating_system: freebsd
430+
version: '13.2'
431+
memory: 8G
432+
cpu_count: 3
433+
environment_variables: 'DEBUG RUSTUP_IO_THREADS'
434+
shell: bash
435+
run: |
436+
sudo pkg install -y -f curl node libnghttp2 npm
437+
sudo npm install -g yarn --ignore-scripts
438+
curl https://sh.rustup.rs -sSf --output rustup.sh
439+
sh rustup.sh -y --profile minimal --default-toolchain stable
440+
source "$HOME/.cargo/env"
441+
echo "~~~~ rustc --version ~~~~"
442+
rustc --version
443+
echo "~~~~ node -v ~~~~"
444+
node -v
445+
echo "~~~~ yarn --version ~~~~"
446+
yarn --version
447+
pwd
448+
ls -lah
449+
whoami
450+
env
451+
freebsd-version
452+
yarn install
453+
yarn build
454+
strip -x *.node
455+
yarn test
456+
rm -rf node_modules
457+
rm -rf target
458+
rm -rf .yarn/cache
459+
416460
test-python:
417461
strategy:
418462
fail-fast: false

Diff for: bindings/javascript/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Added
6+
7+
- Package for `x86_64-unknown-freebsd`.
8+
59
## [0.13.2] - 2024-03-25
610

711
### Changed

Diff for: bindings/javascript/npm/freebsd-x64/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@css-inline/css-inline-freebsd-x64`
2+
3+
This is the **x86_64-unknown-freebsd** binary for `@css-inline/css-inline`

Diff for: bindings/javascript/npm/freebsd-x64/package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "@css-inline/css-inline-freebsd-x64",
3+
"version": "0.13.2",
4+
"description": "High-performance library for inlining CSS into HTML 'style' attributes",
5+
"keywords": [
6+
"css",
7+
"html",
8+
"email",
9+
"stylesheet",
10+
"inlining"
11+
],
12+
"repository": "https://github.com/Stranger6667/css-inline",
13+
"publishConfig": {
14+
"registry": "https://registry.npmjs.org/",
15+
"access": "public"
16+
},
17+
"os": [
18+
"freebsd"
19+
],
20+
"cpu": [
21+
"x64"
22+
],
23+
"main": "css-inline.freebsd-x64.node",
24+
"files": [
25+
"css-inline.freebsd-x64.node"
26+
],
27+
"license": "MIT",
28+
"engines": {
29+
"node": ">= 10"
30+
}
31+
}

0 commit comments

Comments
 (0)