From 6d68a1983631e8795a7d671a5a40c45379d4cd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20Yi=C4=9Fit=20=C5=9Eahin?= Date: Fri, 6 Oct 2023 12:47:45 +0200 Subject: [PATCH] ci: fix cache config --- .github/workflows/ci.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9acf75f2a3..6f1b29ea62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,8 @@ jobs: - uses: taiki-e/install-action@cargo-hack - uses: mkroening/rust-toolchain-toml@main - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Check each feature run: cargo hack check --package hermit-kernel --each-feature --no-dev-deps --target x86_64-unknown-none env: @@ -38,7 +39,8 @@ jobs: - uses: mkroening/rust-toolchain-toml@main - run: rustup component add clippy - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo xtask clippy format: @@ -58,7 +60,8 @@ jobs: - uses: mkroening/rust-toolchain-toml@main - run: rustup target add aarch64-unknown-none-softfloat - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Check docs run: | cargo doc --package hermit-kernel --no-deps --document-private-items --target x86_64-unknown-none @@ -71,7 +74,8 @@ jobs: - uses: actions/checkout@v4 - uses: mkroening/rust-toolchain-toml@main - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Build minimal kernel run: | cargo xtask build --arch x86_64 --no-default-features @@ -88,7 +92,8 @@ jobs: sudo apt-get install qemu-system-x86 - uses: mkroening/rust-toolchain-toml@main - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Unit tests run: cargo test --lib env: @@ -169,7 +174,8 @@ jobs: with: toolchain-file: 'kernel/rust-toolchain.toml' - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} with: workspaces: | . @@ -252,7 +258,8 @@ jobs: with: toolchain-file: 'kernel/rust-toolchain.toml' - uses: Swatinem/rust-cache@v2 - save-if: ${{ github.ref == 'refs/heads/main' }} + with: + save-if: ${{ github.ref == 'refs/heads/main' }} - name: rusty_demo on Uhyve run: cargo xtask ci uhyve --arch x86_64 --package rusty_demo - name: rusty_demo on Uhyve (release)