Fixed CI runner failure when executing tests

This commit is contained in:
Mick Grove 2026-02-12 21:11:50 -08:00
commit 20a05a643c
2 changed files with 41 additions and 4 deletions

View file

@ -36,6 +36,9 @@ jobs:
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build (Makefile linux-arm64)
run: make ubuntu-arm64
@ -55,6 +58,9 @@ jobs:
profile: minimal
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build (Makefile darwin-arm64)
run: make darwin-arm64
- name: Run tests
@ -136,6 +142,9 @@ jobs:
Get-ChildItem $env:VCPKG_DOWNLOADS
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build
run: .\buildwin.bat

View file

@ -44,12 +44,20 @@ jobs:
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Install packaging tools
run: cargo install cargo-deb cargo-generate-rpm
- name: Build (Makefile linux-x64)
run: make linux-x64
- name: Build (Makefile ubuntu-x64)
run: make ubuntu-x64
- name: Run tests
run: make tests
env:
CARGO_BUILD_JOBS: 1
- name: Fix permissions
run: sudo chown -R $(id -u):$(id -g) target
@ -108,12 +116,20 @@ jobs:
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Install packaging tools
run: cargo install cargo-deb cargo-generate-rpm
- name: Build (Makefile linux-arm64)
run: make linux-arm64
- name: Build (Makefile ubuntu-arm64)
run: make ubuntu-arm64
- name: Run tests
run: make tests
env:
CARGO_BUILD_JOBS: 1
- name: Fix permissions
run: sudo chown -R $(id -u):$(id -g) target
@ -162,10 +178,16 @@ jobs:
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build Darwin x64
run: make darwin-x64
- name: Run tests
run: make tests
- name: Move artifacts to dist
shell: bash
run: |
@ -190,6 +212,9 @@ jobs:
override: true
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build Darwin arm64
run: make darwin-arm64
@ -285,6 +310,9 @@ jobs:
- uses: swatinem/rust-cache@v2
with:
shared-key: kingfisher-${{ runner.os }}-${{ runner.arch }}
cache-on-failure: true
- name: Build
run: .\buildwin.bat