@@ -183,3 +183,54 @@ jobs:
183
183
with :
184
184
name : ${{ github.sha }}-${{ matrix.settings.abi }}-plugin-sass
185
185
path : rust-plugins/sass/npm/${{ matrix.settings.abi }}/index.farm
186
+ # Now for create-farm cli only builds
187
+ build-freebsd :
188
+ name : Build and Upload Artifacts - x86_64-unknown-freebsd
189
+ runs-on : ubuntu-latest
190
+ steps :
191
+ - uses : actions/checkout@v4
192
+ - name : Build
193
+ id : build
194
+ uses :
cross-platform-actions/[email protected]
195
+ env :
196
+ DEBUG : napi:*
197
+ RUSTUP_IO_THREADS : 1
198
+ with :
199
+ operating_system : freebsd
200
+ version : ' 14.0'
201
+ memory : 8G
202
+ cpu_count : 3
203
+ environment_variables : DEBUG RUSTUP_IO_THREADS
204
+ shell : bash
205
+ run : |
206
+ sudo pkg install -y -f curl node libnghttp2 npm
207
+ sudo npm install -g pnpm
208
+ curl https://sh.rustup.rs -sSf --output rustup.sh
209
+ sh rustup.sh -y --profile minimal --default-toolchain beta
210
+ source "$HOME/.cargo/env"
211
+ echo "~~~~ rustc --version ~~~~"
212
+ rustc --version
213
+ echo "~~~~ node -v ~~~~"
214
+ node -v
215
+ echo "~~~~ pnpm --version ~~~~"
216
+ pnpm --version
217
+ pwd
218
+ ls -lah
219
+ whoami
220
+ env
221
+ freebsd-version
222
+
223
+ echo "~~~~ Install dependencies ~~~~"
224
+ cd packages/create-farm && pnpm i --frozen-lockfile --ignore-scripts
225
+ echo "~~~~ Build ~~~~"
226
+ pnpm build --target x86_64-unknown-freebsd
227
+ echo "~~~~ ls -lah ~~~~"
228
+ ls -lah
229
+
230
+ rm -rf node_modules
231
+ rm -rf target
232
+ - name : Upload Create Farm Rust
233
+ uses : actions/upload-artifact@v4
234
+ with :
235
+ name : ${{ github.sha }}-x86_64-unknown-freebsd-create-farm
236
+ path : ./packages/create-farm/create-farm.freebsd-x64.node
0 commit comments