diff --git a/.github/workflows/test_rusty_linux.yml b/.github/workflows/test_rusty_linux.yml index b2a1472..7db7a0d 100644 --- a/.github/workflows/test_rusty_linux.yml +++ b/.github/workflows/test_rusty_linux.yml @@ -1,21 +1,24 @@ name: Test Rusty Linux -on: [push] +on: + push: + branches: [main] + pull_request: jobs: check: name: Rusty Linux strategy: matrix: os: [ubuntu-24.04, ubuntu-24.04-arm] + timeout-minutes: 30 runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install latest stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - toolchain: stable - override: true - components: rustfmt, clippy + components: rustfmt, clippy + - uses: Swatinem/rust-cache@v2 - name: Install Rusty Linux - run: chmod a+x ./RustyLinux.sh && ./RustyLinux.sh + run: bash ./RustyLinux.sh