Skip to content

Commit

Permalink
Updates to CI config
Browse files Browse the repository at this point in the history
cberner committed Nov 22, 2024
1 parent 1acdd16 commit bc11288
Showing 1 changed file with 39 additions and 9 deletions.
48 changes: 39 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -16,14 +16,28 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Cache
id: rust-cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}

- name: Install packages
run: |
sudo apt update
sudo apt install -y ${{ matrix.libfuse }} build-essential
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: x86_64-unknown-linux-musl
- name: Install Rust
#if: steps.rust-cache.outputs.cache-hit != 'true'
run: |
rustup target add x86_64-unknown-linux-musl
- name: Run tests
run: |
@@ -36,18 +50,34 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Cache
id: rust-cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}

- name: Install packages
run: |
sudo apt update
sudo apt install -y libfuse-dev libfuse3-dev build-essential
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- name: Install Rust
#if: steps.rust-cache.outputs.cache-hit != 'true'
run: |
rustup toolchain install 1.81
rustup component add rustfmt
rustup component add clippy
- uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.14
- name: Install cargo-deny
#if: steps.rust-cache.outputs.cache-hit != 'true'
run: cargo +1.81 install --force --version 0.16.2 cargo-deny --locked

- name: Run tests
run: INTERACTIVE="" make pre

0 comments on commit bc11288

Please sign in to comment.