From 20a05a643ce57298b1f56f49663fe50b87b68fbf Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Thu, 12 Feb 2026 21:11:50 -0800 Subject: [PATCH] Fixed CI runner failure when executing tests --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 819b8a4..09ecb68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b80f8b7..6c302f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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