summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-06-02 18:04:51 -0400
committerGitHub <noreply@github.com>2022-06-02 18:04:51 -0400
commit0c648ed14ae050d32f7da821027495ebbc116da5 (patch)
tree24cb4b8f00239c3d04651177762cf2f12d3ce286 /.github
parent7e1a0a97449f45041754ce80a37b1aab860461ad (diff)
ci: try moving to rust-toolchain (#745)
action-rs' action seems to not be really maintained anymore and throws some redundant warnings that kinda clog up outputs. As such, I feel like moving to a more active action is probably worth it.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/audit.yml13
-rw-r--r--.github/workflows/build_releases.yml26
-rw-r--r--.github/workflows/ci.yml21
-rw-r--r--.github/workflows/coverage.yml11
-rw-r--r--.github/workflows/docs.yml3
-rw-r--r--.github/workflows/post-release.yml6
-rw-r--r--.github/workflows/test-docs.yml3
7 files changed, 45 insertions, 38 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index 9da0b694..f7f8f806 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -9,17 +9,16 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
- - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
+ - name: Enable Rust cache
+ uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
- - name: Install toolchain
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ - name: Set up Rust toolchain
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: stable
- override: true
- target: ${{ matrix.triple.target }}
- name: Install cargo-audit
run: |
diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml
index 0b0aba91..b17ce8d1 100644
--- a/.github/workflows/build_releases.yml
+++ b/.github/workflows/build_releases.yml
@@ -112,12 +112,19 @@ jobs:
with:
fetch-depth: 1
- - name: Install toolchain
+ - name: Set up Rust toolchain
+ if: matrix.info.container == ''
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
+ with:
+ toolchain: stable
+ target: ${{ matrix.info.target }}
+
+ - name: Set up Rust toolchain (non-GitHub container)
+ if: matrix.info.container != ''
uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
with:
profile: minimal
toolchain: stable
- override: true
target: ${{ matrix.info.target }}
- name: Enable Rust cache
@@ -197,12 +204,10 @@ jobs:
with:
args: install -y wixtoolset
- - name: Install toolchain
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ - name: Set up Rust toolchain
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: stable
- override: true
target: x86_64-pc-windows-msvc
- name: Enable Rust cache
@@ -259,15 +264,14 @@ jobs:
with:
fetch-depth: 1
- - name: Install toolchain
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ - name: Set up Rust toolchain
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: stable
- override: true
target: ${{ matrix.info.target }}
- - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
+ - name: Enable Rust cache
+ uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
- name: Build
uses: actions-rs/cargo@v1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1913638a..e79077ee 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -64,16 +64,15 @@ jobs:
paths: '[".cargo/**", ".github/workflows/ci.yml", "sample_configs/**", "src/**", "tests/**", "build.rs", "Cargo.lock", "Cargo.toml", "clippy.toml", "rustfmt.toml"]'
do_not_skip: '["workflow_dispatch", "push"]'
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- - name: Setup Rust toolchain
+ - name: Set up Rust toolchain
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: stable
- override: true
components: rustfmt, clippy
target: ${{ matrix.triple.target }}
@@ -225,19 +224,19 @@ jobs:
paths: '[".cargo/**", ".github/workflows/ci.yml", "sample_configs/**", "src/**", "tests/**", "build.rs", "Cargo.lock", "Cargo.toml", "clippy.toml", "rustfmt.toml"]'
do_not_skip: '["workflow_dispatch", "push"]'
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- - name: Install toolchain
+ - name: Set up Rust toolchain
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
- uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: ${{ matrix.triple.rust }}
- override: true
target: ${{ matrix.triple.target }}
- - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
+ - name: Enable Rust cache
+ uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
with:
key: ${{ matrix.triple.target }}
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 7af9ee3e..c50b349a 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -31,15 +31,16 @@ jobs:
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
- - uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # https://github.com/actions-rs/toolchain/commit/88dc2356392166efad76775c878094f4e83ff746
+ - name: Set up Rust toolchain
+ uses: dtolnay/rust-toolchain@88e7c2e1da2693cf72d58fce9416206818e61dea # https://github.com/dtolnay/rust-toolchain/commit/88e7c2e1da2693cf72d58fce9416206818e61dea
with:
- profile: minimal
toolchain: stable
- override: true
- - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
+ - name: Enable Rust cache
+ uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
with:
key: ${{ matrix.triple.target }}
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 56a56877..5dbba593 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -18,7 +18,8 @@ jobs:
name: Build and deploy docs
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
with:
fetch-depth: 0
diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml
index 9aff63b1..526ee5bf 100644
--- a/.github/workflows/post-release.yml
+++ b/.github/workflows/post-release.yml
@@ -14,7 +14,8 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
with:
fetch-depth: 0
@@ -63,7 +64,8 @@ jobs:
packaging:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml
index 2f3fd6af..dcd7995c 100644
--- a/.github/workflows/test-docs.yml
+++ b/.github/workflows/test-docs.yml
@@ -22,7 +22,8 @@ jobs:
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - name: Checkout repository
+ uses: actions/checkout@v3
with:
fetch-depth: 0