CI · the platform legs match the Gitea runners; the Linux leg tests as a plain user
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
49ed1f8405
commit
44a7debfb6
1 file changed
+11
-2
@@ -22,7 +22,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-15-intel]
|
# One leg per runner registered with git.zacharyzhang.com; macOS arm64 is the crate job above.
|
||||||
|
os: [ubuntu-24.04, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
@@ -30,7 +31,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: "1.95"
|
toolchain: "1.95"
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- run: cargo test --lib --features test-support --quiet
|
- if: runner.os != 'Linux'
|
||||||
|
run: cargo test --lib --features test-support --quiet
|
||||||
|
# The Linux job container runs as root, which ignores the file permissions the tests check.
|
||||||
|
- if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
useradd --create-home ci
|
||||||
|
chmod o+x "$HOME"
|
||||||
|
chown -R ci "$GITHUB_WORKSPACE" "$HOME/.cargo" "$HOME/.rustup"
|
||||||
|
runuser -u ci -- env HOME=/home/ci CARGO_HOME="$HOME/.cargo" RUSTUP_HOME="$HOME/.rustup" PATH="$PATH" cargo test --lib --features test-support --quiet
|
||||||
- run: cargo build --example gallery
|
- run: cargo build --example gallery
|
||||||
|
|
||||||
site:
|
site:
|
||||||
|
|||||||
Reference in new issue
Block a user