CI: update used actions #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
stable: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install e2fslibs | |
run: | | |
sudo apt update | |
sudo apt install -y e2fslibs e2fslibs-dev | |
- name: Build | |
run: cargo build --verbose --target x86_64-unknown-linux-gnu | |
- name: Test | |
run: cargo test --verbose --target x86_64-unknown-linux-gnu | |
beta: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@beta | |
- name: Install e2fslibs | |
run: | | |
sudo apt update | |
sudo apt install -y e2fslibs e2fslibs-dev | |
- name: Build | |
run: cargo build --verbose --target x86_64-unknown-linux-gnu | |
- name: Test | |
run: cargo test --verbose --target x86_64-unknown-linux-gnu | |
nightly: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Install e2fslibs | |
run: | | |
sudo apt update | |
sudo apt install -y e2fslibs e2fslibs-dev | |
- name: Build | |
run: cargo build --verbose --target x86_64-unknown-linux-gnu | |
- name: Test | |
run: cargo test --verbose --target x86_64-unknown-linux-gnu | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- name: Install e2fslibs | |
run: | | |
sudo apt update | |
sudo apt install -y e2fslibs e2fslibs-dev | |
- name: Lint | |
run: cargo clippy --all-targets --all-features -- -D warnings |