diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e722b5cd..2046a6ee 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: diff --git a/ci/jobs/check-freebsd.sh b/ci/jobs/check-freebsd.sh new file mode 100755 index 00000000..ccd35a8e --- /dev/null +++ b/ci/jobs/check-freebsd.sh @@ -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 ../.. diff --git a/ci/run-all-tests.sh b/ci/run-all-tests.sh index 0ca19d8f..ed97464b 100755 --- a/ci/run-all-tests.sh +++ b/ci/run-all-tests.sh @@ -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