aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml45+39 −6
1 files changed, 39 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 163f258..599b6df 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,22 +23,55 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
with:
version: 2026.7.5
experimental: true
- install: true
- cache: true
- - run: cargo fmt -- --check
- - run: cargo test --locked
- - run: cargo clippy --locked --all-targets -- -D warnings
+ install: false
+ - name: Install dependencies
+ run: mise bootstrap --locked --yes --update
+ - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
+
+ - name: Check formatting
+ run: cargo fmt --all --check
+
- run: shellcheck scripts/*.sh tests/*.sh
+
+ build:
+ name: Build (${{ matrix.arch }})
+ runs-on: ${{ matrix.runner }}
+ needs: [check]
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - runner: ubuntu-24.04
+ arch: amd64
+ - runner: ubuntu-24.04-arm
+ arch: arm64
+ steps:
+ - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+
+ - uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
+ with:
+ version: 2026.7.5
+ experimental: true
+ install: false
+ - name: Install dependencies
+ run: mise bootstrap --locked --yes --update
+ - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
+
+ - run: cargo clippy --locked --all-targets --all-features --release -- -D warnings
+ - run: cargo build --release
+
+ - run: cargo test --all-features --release --locked
- run: tests/chart.sh
image:
name: Image and smoke test
runs-on: ubuntu-latest
- needs: [check]
+ needs: [build]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3