Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update freebsd testing #1180

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,35 @@ on:
- 'release/**'
schedule:
- cron: '0 4 * * *'
workflow_dispatch: {}

jobs:
test-freebsd:
# see https://github.com/actions/runner/issues/385
# use https://github.com/vmactions/freebsd-vm for now
name: test on freebsd
runs-on: macos-12
timeout-minutes: 30
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: test on freebsd
uses: vmactions/freebsd-vm@v0
uses: vmactions/freebsd-vm@d44bf830e7d850111d27aa120d468c905e5980f4
with:
usesh: true
mem: 4096
copyback: false
prepare: |
pkg install -y curl
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile default --default-toolchain stable # cannot use `--profile minimal` because of clippy
sh rustup.sh -y --profile minimal --default-toolchain stable
. "$HOME/.cargo/env"
rustup component add clippy
echo "~~~~ rustc --version ~~~~"
$HOME/.cargo/bin/rustc --version
rustc --version
echo "~~~~ freebsd-version ~~~~"
freebsd-version
run: $HOME/.cargo/bin/cargo clippy --workspace --all-targets -- -D warnings && $HOME/.cargo/bin/cargo build --all-targets && $HOME/.cargo/bin/cargo test
run: |
. "$HOME/.cargo/env"
cargo clippy --workspace --all-targets -- -D warnings &&
cargo build --all-targets &&
cargo test