Skip to content

Commit

Permalink
ci: Bump actions/checkout to v4
Browse files Browse the repository at this point in the history
Use action/checkout@v4 and fix fetch-depth for landlock-test-tools. See
https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

Signed-off-by: Mickaël Salaün <[email protected]>
  • Loading branch information
l0kod committed Sep 3, 2024
1 parent 537d293 commit 3c0665c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -56,15 +56,14 @@ jobs:
LANDLOCK_CRATE_TEST_ABI: 3
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ matrix.commit }}

- name: Clone Landlock test tools
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: landlock-lsm/landlock-test-tools
fetch-depth: 0
ref: ${{ env.LANDLOCK_TEST_TOOLS_COMMIT }}
path: landlock-test-tools

Expand Down Expand Up @@ -107,7 +106,7 @@ jobs:
rustup component add rustfmt clippy
rustup update
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ matrix.commit }}

Expand Down Expand Up @@ -142,15 +141,14 @@ jobs:
CARGO: rustup run stable cargo
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ matrix.commit }}

- name: Clone Landlock test tools
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: landlock-lsm/landlock-test-tools
fetch-depth: 0
ref: ${{ env.LANDLOCK_TEST_TOOLS_COMMIT }}
path: landlock-test-tools

Expand Down

0 comments on commit 3c0665c

Please sign in to comment.