From 6d9eb7e1622f89b27cad05730aa821548337d04e Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 29 Oct 2023 01:55:34 +0000 Subject: [PATCH] ci: specify full action versions --- .github/workflows/ci-post-merge.yml | 18 ++++++++++-------- .github/workflows/ci.yml | 12 +++++++----- .github/workflows/clippy-fmt.yml | 8 ++++---- .github/workflows/upload-doc.yml | 5 +++-- 4 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci-post-merge.yml b/.github/workflows/ci-post-merge.yml index d9680fc3..7c9de532 100644 --- a/.github/workflows/ci-post-merge.yml +++ b/.github/workflows/ci-post-merge.yml @@ -52,12 +52,13 @@ jobs: echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append - name: Install Rust (${{ matrix.version }}) - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: toolchain: ${{ matrix.version }} - - uses: taiki-e/install-action@v2 - with: { tool: cargo-hack } + - uses: taiki-e/install-action@v2.20.14 + with: + tool: cargo-hack - name: check lib if: > @@ -110,12 +111,12 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust (nightly) - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: toolchain: nightly - name: Install cargo-hack & cargo-minimal-versions - uses: taiki-e/install-action@v1 + uses: taiki-e/install-action@v2.20.14 with: tool: cargo-hack,cargo-minimal-versions @@ -129,11 +130,12 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 - name: Install cargo-nextest - uses: taiki-e/install-action@v1 - with: { tool: cargo-nextest } + uses: taiki-e/install-action@v2.20.14 + with: + tool: cargo-nextest - name: Test with cargo-nextest run: cargo nextest run diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74315e6a..d69f0929 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,12 +53,13 @@ jobs: echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append - name: Install Rust (${{ matrix.version }}) - uses: actions-rust-lang/setup-rust-toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: toolchain: ${{ matrix.version }} - - uses: taiki-e/install-action@v1 - with: { tool: cargo-hack } + - uses: taiki-e/install-action@v2.20.14 + with: + tool: cargo-hack - name: Generate Cargo.lock run: cargo generate-lockfile @@ -123,8 +124,9 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust (nightly) - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: { toolchain: nightly } + uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 + with: + toolchain: nightly - name: doc tests io-uring run: | diff --git a/.github/workflows/clippy-fmt.yml b/.github/workflows/clippy-fmt.yml index b26b1282..f50aeee1 100644 --- a/.github/workflows/clippy-fmt.yml +++ b/.github/workflows/clippy-fmt.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: toolchain: nightly components: rustfmt @@ -33,11 +33,11 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: { components: clippy } - - uses: giraffate/clippy-action@v1 + - uses: giraffate/clippy-action@v1.0.1 with: reporter: 'github-pr-check' github_token: ${{ secrets.GITHUB_TOKEN }} - clippy_flags: --workspace --all-features --tests --examples --bins -- -Dclippy::todo + clippy_flags: --workspace --all-features --tests --examples --bins -- -Dclippy::todo -Aunknown_lints diff --git a/.github/workflows/upload-doc.yml b/.github/workflows/upload-doc.yml index 66147949..6858ec56 100644 --- a/.github/workflows/upload-doc.yml +++ b/.github/workflows/upload-doc.yml @@ -20,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1.5.0 with: { toolchain: nightly } - name: Build Docs @@ -30,6 +30,7 @@ jobs: run: echo '' > target/doc/index.html - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 + uses: JamesIves/github-pages-deploy-action@v4.4.3 with: folder: target/doc + single-commit: true