From c72120a8772ccfa269391c4cb2bf511dd2a785eb Mon Sep 17 00:00:00 2001 From: Zhang Jingqiang Date: Fri, 7 Feb 2025 13:54:11 +0800 Subject: [PATCH] use tagged version for github actions --- .github/workflows/cargo.yml | 3 ++- .github/workflows/codecov.yml | 11 +++++++---- .github/workflows/cross.yml | 5 +++-- .github/workflows/linux.yml | 13 ++++++++----- .github/workflows/macos.yml | 11 +++++++---- .github/workflows/sphinx.yml | 4 ++-- .github/workflows/static.yml | 8 +++++--- .github/workflows/windows.yml | 11 +++++++---- 8 files changed, 41 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index fe1e8eb3..e991a91f 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -1,5 +1,6 @@ name: Cargo-General -permissions: {} +permissions: { } + on: pull_request: paths: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 135a40bc..a039da97 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,5 +1,5 @@ name: CodeCoverage -permissions: {} +permissions: { } on: push: @@ -36,8 +36,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: llvm-tools - name: Install build dependencies run: | @@ -84,8 +85,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: llvm-tools - name: Install build dependencies run: | @@ -163,8 +165,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: llvm-tools - name: Install build dependencies run: | diff --git a/.github/workflows/cross.yml b/.github/workflows/cross.yml index 7ec745f6..83f2d957 100644 --- a/.github/workflows/cross.yml +++ b/.github/workflows/cross.yml @@ -1,5 +1,5 @@ name: CrossCompiling -permissions: {} +permissions: { } on: push: @@ -88,8 +88,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable targets: ${{ matrix.target.rustc }} components: clippy - name: Install dependencies diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 27fbc22e..120ceb83 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,5 +1,5 @@ name: Linux-CI -permissions: {} +permissions: { } on: push: @@ -35,7 +35,7 @@ jobs: with: submodules: true - name: Install ${{ matrix.rust }} toolchain - uses: dtolnay/rust-toolchain@master + uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.rust }} - name: Install dependencies @@ -56,8 +56,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | @@ -88,8 +89,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | @@ -119,8 +121,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b94230bf..9f5d90b3 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,5 +1,5 @@ name: MacOS-CI -permissions: {} +permissions: { } on: push: @@ -29,8 +29,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | @@ -63,8 +64,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | @@ -92,8 +94,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install dependencies run: | diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 839363af..ededa0f6 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -1,5 +1,5 @@ name: Sphinx-Doc -permissions: {} +permissions: { } on: push: @@ -19,6 +19,6 @@ jobs: - g3tiles steps: - uses: actions/checkout@v4 - - uses: ammaraskar/sphinx-action@master + - uses: ammaraskar/sphinx-action@0.4 with: docs-folder: "sphinx/${{ matrix.component }}" diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 64733804..100a8644 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,5 +1,5 @@ name: StaticLinking -permissions: {} +permissions: { } on: push: @@ -36,8 +36,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable targets: x86_64-unknown-linux-musl - name: Install dependencies run: | @@ -65,8 +66,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Cargo build run: cargo build --no-default-features --features ${{ matrix.feature }},quic,vendored-c-ares,hickory diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 57d51916..b030c9eb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,5 +1,5 @@ name: Windows-CI -permissions: {} +permissions: { } on: push: @@ -31,8 +31,9 @@ jobs: with: submodules: true - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Install tools (choco) run: choco install capnproto @@ -69,8 +70,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Cargo build run: cargo build --no-default-features --features ${{ matrix.feature }} -p ${{ matrix.component }} @@ -101,8 +103,9 @@ jobs: with: submodules: true - name: Install rust toolchain - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@v1 with: + toolchain: stable components: clippy - name: Cargo build run: cargo build --no-default-features --features ${{ matrix.feature }} -p ${{ matrix.component }}