Skip to content

Commit

Permalink
Check that the main crate compiles under FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Oct 17, 2023
1 parent a70bef5 commit 56e2a2c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ jobs:
run: sudo apt-get install -y lld
- name: Install target -- i686-unknown-linux-musl
run: rustup target add i686-unknown-linux-musl
- name: Install target -- x86_64-unknown-freebsd
run: rustup target add x86_64-unknown-freebsd
- name: Build and test (generic)
run: ./ci/jobs/build-and-test.sh
- name: Build and test (Linux-only)
run: ./ci/jobs/build-and-test-linux.sh
- name: Check (FreeBSD)
run: ./ci/jobs/check-freebsd.sh
build-and-test-macos:
runs-on: macos-latest
steps:
Expand Down
10 changes: 10 additions & 0 deletions ci/jobs/check-freebsd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
cd ../..

echo ">> cargo check (freebsd)"
cd crates/polkavm
cargo check --target=x86_64-unknown-freebsd
cd ../..
3 changes: 3 additions & 0 deletions ci/run-all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ case "$OSTYPE" in
./ci/jobs/build-and-test-macos.sh
;;
esac

./ci/jobs/check-freebsd.sh

./ci/jobs/clippy.sh
./ci/jobs/rustfmt.sh

Expand Down

0 comments on commit 56e2a2c

Please sign in to comment.