Merge pull request #129 from storytold/pr/freebsd-ci-sync
FreeBSD CI: match the shared template
This commit is contained in:
commit
36a6a8ae49
|
|
@ -28,18 +28,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build and test in a FreeBSD VM
|
- name: Build and test in a FreeBSD VM
|
||||||
uses: vmactions/freebsd-vm@v1
|
uses: vmactions/freebsd-vm@c46abacb49f09938ca4e1702d15d836285d694cc # v1
|
||||||
with:
|
with:
|
||||||
release: "14.3"
|
release: "14.3"
|
||||||
usesh: true
|
usesh: true
|
||||||
|
cpu: 4
|
||||||
mem: 12288
|
mem: 12288
|
||||||
# Nothing to bring back; copying the target dir out of the VM fails on large builds.
|
# Nothing to bring back; copying the target dir out of the VM fails on large builds.
|
||||||
copyback: false
|
copyback: false
|
||||||
prepare: |
|
prepare: |
|
||||||
pkg install -y curl pkgconf cmake python3 libxkbcommon wayland libX11 libXcursor libXrandr libXi libxcb mesa-libs vulkan-loader gtk3 fontconfig freetype2 alsa-lib
|
pkg install -y git curl pkgconf cmake python3 libxkbcommon wayland libX11 libXcursor libXrandr libXi libxcb mesa-libs vulkan-loader gtk3 fontconfig freetype2 alsa-lib
|
||||||
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
|
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||||
run: |
|
run: |
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
# The checkout is synced in under another owner; let tests that call git read it.
|
||||||
|
git config --global --add safe.directory "*"
|
||||||
rustc --version
|
rustc --version
|
||||||
CARGO_PROFILE_DEV_DEBUG=0 cargo build --workspace --all-targets --locked
|
CARGO_PROFILE_DEV_DEBUG=0 cargo build --workspace --all-targets --locked
|
||||||
CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked
|
CARGO_PROFILE_DEV_DEBUG=0 cargo test --workspace --locked
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue