4545 settings :
4646 - host : macos-latest
4747 target : x86_64-apple-darwin
48- build : yarn build --target x86_64-apple-darwin --features openssl-vendored
48+ build : yarn build --target x86_64-apple-darwin
4949 - host : windows-latest
5050 build : yarn build --target x86_64-pc-windows-msvc
5151 target : x86_64-pc-windows-msvc
@@ -54,22 +54,22 @@ jobs:
5454 target : i686-pc-windows-msvc
5555 - host : ubuntu-latest
5656 target : x86_64-unknown-linux-gnu
57- build : yarn build --target x86_64-unknown-linux-gnu --use-cross --features openssl-vendored
57+ build : yarn build --target x86_64-unknown-linux-gnu --use-cross
5858 - host : ubuntu-latest
5959 target : x86_64-unknown-linux-musl
60- build : yarn build --target x86_64-unknown-linux-musl -x --features openssl-vendored
60+ build : yarn build --target x86_64-unknown-linux-musl -x
6161 - host : macos-latest
6262 target : aarch64-apple-darwin
63- build : yarn build --target aarch64-apple-darwin --features openssl-vendored
63+ build : yarn build --target aarch64-apple-darwin
6464 - host : ubuntu-latest
6565 target : aarch64-unknown-linux-gnu
66- build : yarn build --target aarch64-unknown-linux-gnu --use-cross --features openssl-vendored
66+ build : yarn build --target aarch64-unknown-linux-gnu --use-cross
6767 - host : ubuntu-latest
6868 target : armv7-unknown-linux-gnueabihf
69- build : yarn build --target armv7-unknown-linux-gnueabihf --use-cross --features openssl-vendored
69+ build : yarn build --target armv7-unknown-linux-gnueabihf --use-cross
7070 - host : ubuntu-latest
7171 target : aarch64-unknown-linux-musl
72- build : yarn build --target aarch64-unknown-linux-musl -x --features openssl-vendored
72+ build : yarn build --target aarch64-unknown-linux-musl -x
7373 - host : windows-latest
7474 target : aarch64-pc-windows-msvc
7575 build : yarn build --target aarch64-pc-windows-msvc
@@ -100,20 +100,20 @@ jobs:
100100 target/
101101 key : ${{ matrix.settings.target }}-cargo-${{ matrix.settings.host }}
102102 - uses : mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
103- if : ${{ contains (matrix.settings.build, ' -x ') }}
103+ if : ${{ endsWith (matrix.settings.build, ' -x') }}
104104 with :
105105 version : 0.14.1
106106 use-cache : true # zizmor: ignore[cache-poisoning]
107107 - name : Install cargo-binstall
108- if : contains (matrix.settings.build, ' -x ') || contains (matrix.settings.build, '--use-cross ')
108+ if : endsWith (matrix.settings.build, ' -x') || endsWith (matrix.settings.build, '--use-cross')
109109 uses : cargo-bins/cargo-binstall@aaa84a43aec4955a42c5ffc65d258961e39f276e # v1.19.1
110110 env :
111111 GITHUB_TOKEN : ${{ github.token }}
112- - name : Install ${{contains (matrix.settings.build, ' -x ') && 'cargo-zigbuild' || 'cargo-cross'}}
113- if : contains (matrix.settings.build, ' -x ') || contains (matrix.settings.build, '--use-cross ')
112+ - name : Install ${{endsWith (matrix.settings.build, ' -x') && 'cargo-zigbuild' || 'cargo-cross'}}
113+ if : endsWith (matrix.settings.build, ' -x') || endsWith (matrix.settings.build, '--use-cross')
114114 env :
115115 GITHUB_TOKEN : ${{ github.token }}
116- tool : ${{contains (matrix.settings.build, ' -x ') && 'cargo-zigbuild' || 'cross'}}
116+ tool : ${{endsWith (matrix.settings.build, ' -x') && 'cargo-zigbuild' || 'cross'}}
117117 run : cargo binstall -y $tool
118118 - name : Setup toolchain
119119 run : ${{ matrix.settings.setup }}
@@ -139,8 +139,7 @@ jobs:
139139 - uses : actions/checkout@v6
140140 with :
141141 persist-credentials : false
142- - name : Build
143- id : build
142+ - name : setup FreeBSD VM
144143 uses : cross-platform-actions/action@0c165ad7eb2d6a7e8552d6af5aad2bbedfc646b0 # v1.1.0
145144 env :
146145 DEBUG : napi:*
@@ -151,29 +150,30 @@ jobs:
151150 memory : 8G
152151 cpu_count : 3
153152 environment_variables : DEBUG RUSTUP_IO_THREADS
154- shell : bash
155- run : |
156- sudo pkg install -y -f curl node libnghttp2 npm cmake
157- sudo npm install -g yarn --ignore-scripts
158- curl https://sh.rustup.rs -sSf --output rustup.sh
159- sh rustup.sh -y --profile minimal --default-toolchain stable
160- source "$HOME/.cargo/env"
161- echo "~~~~ rustc --version ~~~~"
162- rustc --version
163- echo "~~~~ node -v ~~~~"
164- node -v
165- echo "~~~~ yarn --version ~~~~"
166- yarn --version
167- pwd
168- ls -lah
169- whoami
170- env
171- freebsd-version
172- yarn install
173- yarn build
174- rm -rf node_modules
175- rm -rf target
176- rm -rf .yarn/cache
153+ - name : Build
154+ shell : cpa.sh {0}
155+ run : |-
156+ sudo pkg install -y -f curl node libnghttp2 npm cmake
157+ sudo npm install -g yarn --ignore-scripts
158+ curl https://sh.rustup.rs -sSf --output rustup.sh
159+ sh rustup.sh -y --profile minimal --default-toolchain stable
160+ . "$HOME/.cargo/env"
161+ echo "~~~~ rustc --version ~~~~"
162+ rustc --version
163+ echo "~~~~ node -v ~~~~"
164+ node -v
165+ echo "~~~~ yarn --version ~~~~"
166+ yarn --version
167+ pwd
168+ ls -lah
169+ whoami
170+ env
171+ freebsd-version
172+ yarn install
173+ yarn build
174+ rm -rf node_modules
175+ rm -rf target
176+ rm -rf .yarn/cache
177177 - name : Upload artifact
178178 uses : actions/upload-artifact@v7
179179 with :
0 commit comments