-
-
Notifications
You must be signed in to change notification settings - Fork 43
43 lines (40 loc) · 1.2 KB
/
nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: nightly
permissions:
contents: read
on:
push:
branches:
- '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: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: test on freebsd
uses: vmactions/freebsd-vm@debf37ca7b7fa40e19c542ef7ba30d6054a706a4
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 minimal --default-toolchain stable
. "$HOME/.cargo/env"
rustup component add clippy
echo "~~~~ rustc --version ~~~~"
rustc --version
echo "~~~~ freebsd-version ~~~~"
freebsd-version
run: |
. "$HOME/.cargo/env"
cargo clippy --workspace --all-targets -- -D warnings &&
cargo build --all-targets &&
cargo test