Skip to content

Commit b161316

Browse files
authored
CI for NetBSD (#945)
* CI for NetBSD * Also update FreeBSD
1 parent a58c3f0 commit b161316

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

.github/workflows/cross.yml

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,29 +370,68 @@ jobs:
370370

371371
freebsd:
372372
if: github.repository_owner == 'aws'
373-
name: aws-lc-rs freebsd test
373+
name: freebsd ${{ matrix.release }} (${{ matrix.arch }}) -- ${{ matrix.options }}
374374
runs-on: ubuntu-latest
375375
strategy:
376376
fail-fast: false
377377
matrix:
378-
target: [ 13.4, 14.1 ]
378+
arch: [ 'x86_64' ] # , 'aarch64', 'riscv64' ]
379+
release: [ '14.3', '15.0' ]
380+
options:
381+
- '--all-targets'
382+
- '--release'
383+
- '--no-default-features --features=fips'
384+
# exclude:
385+
# - arch: 'riscv64'
386+
# options: '--no-default-features --features=fips'
379387
steps:
380388
- uses: actions/checkout@v4
381389
with:
382390
submodules: "recursive"
383391
- name: Prepare VM
384392
uses: vmactions/freebsd-vm@v1
385393
with:
386-
release: ${{ matrix.target }}
394+
release: ${{ matrix.release }}
395+
arch: ${{ matrix.arch }}
387396
usesh: true
388397
copyback: false
389398
prepare: |
390399
pkg install -y git gmake bash sudo cmake-core llvm-devel-lite curl go
391400
run: |
392401
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
393402
. "$HOME/.cargo/env"
394-
cargo test -p aws-lc-rs
395-
cargo test -p aws-lc-rs --no-default-features --features=fips
403+
cargo test -p aws-lc-rs ${{ matrix.options }}
404+
netbsd:
405+
if: github.repository_owner == 'aws'
406+
name: netbsd ${{ matrix.release }} (${{ matrix.arch }}) -- ${{ matrix.options }}
407+
runs-on: ubuntu-latest
408+
strategy:
409+
fail-fast: false
410+
matrix:
411+
arch: [ 'x86_64' ] # , 'aarch64' ]
412+
release: [ '10.1' ]
413+
options:
414+
- '--all-targets'
415+
- '--release'
416+
steps:
417+
- uses: actions/checkout@v4
418+
with:
419+
submodules: "recursive"
420+
- name: Prepare VM
421+
uses: vmactions/netbsd-vm@v1
422+
with:
423+
release: ${{ matrix.release }}
424+
arch: ${{ matrix.arch }}
425+
usesh: true
426+
copyback: false
427+
prepare: |
428+
export PATH="/usr/pkg/bin:/usr/pkg/sbin:/usr/sbin:/usr/bin:/sbin:/bin"
429+
export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/${{ matrix.arch }}/${{ matrix.release }}/All"
430+
pkg_add -u curl cmake gmake perl mozilla-rootcerts
431+
run: |
432+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
433+
. "$HOME/.cargo/env"
434+
cargo test -p aws-lc-rs ${{ matrix.options }}
396435
cross-x86_64-pc-windows-gnu:
397436
if: github.repository_owner == 'aws'
398437
name: cross (prebuilt nasm) - x86_64-pc-windows-gnu

0 commit comments

Comments
 (0)