diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 595952e855..60dec20df1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: - push: - branches: - - main pull_request: merge_group: @@ -24,9 +21,6 @@ jobs: - uses: actions/checkout@v4 - uses: taiki-e/install-action@cargo-hack - uses: mkroening/rust-toolchain-toml@main - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - run: rustup target add x86_64-unknown-none - name: Check each feature run: cargo hack check --package hermit-kernel --each-feature --skip gem-net --no-dev-deps --target x86_64-unknown-none @@ -40,12 +34,6 @@ jobs: - uses: actions/checkout@v4 - uses: mkroening/rust-toolchain-toml@main - run: rustup component add clippy - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - workspaces: | - . - hermit-builtins - run: cargo xtask clippy format: @@ -70,9 +58,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: mkroening/rust-toolchain-toml@main - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo xtask doc build: @@ -81,12 +66,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: mkroening/rust-toolchain-toml@main - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - workspaces: | - . - hermit-builtins - name: Build minimal kernel run: | cargo xtask build --arch x86_64 --no-default-features @@ -102,12 +81,6 @@ jobs: sudo apt-get update sudo apt-get install qemu-system-x86 - uses: mkroening/rust-toolchain-toml@main - - uses: Swatinem/rust-cache@v2 - with: - save-if: ${{ github.ref == 'refs/heads/main' }} - workspaces: | - . - hermit-builtins - name: Unit tests run: cargo test --lib env: @@ -174,14 +147,6 @@ jobs: - uses: mkroening/rust-toolchain-toml@main with: toolchain-file: 'kernel/rust-toolchain.toml' - - uses: Swatinem/rust-cache@v2 - with: - key: ${{ matrix.arch }}-${{ matrix.profile }} - save-if: ${{ github.ref == 'refs/heads/main' }} - workspaces: | - . - kernel - kernel/hermit-builtins - name: Download loader run: gh release download --repo hermit-os/loader --pattern 'hermit-loader-${{ matrix.arch }}*' - name: Dowload OpenSBI