From 9ec2e73bf4c847c44f2132b65d100ef037ec6b28 Mon Sep 17 00:00:00 2001
From: Piotr Roslaniec
Date: Mon, 22 Jan 2024 14:19:16 +0100
Subject: [PATCH] chore(ci): replace deprecated action-rs gh actions
---
.github/workflows/nucypher-core.yml | 34 ++++++++++-------------------
.github/workflows/wheels.yml | 4 +---
.github/workflows/workspace.yml | 8 ++-----
3 files changed, 14 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/nucypher-core.yml b/.github/workflows/nucypher-core.yml
index 45c2a899..e6a82142 100644
--- a/.github/workflows/nucypher-core.yml
+++ b/.github/workflows/nucypher-core.yml
@@ -35,12 +35,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- target: ${{ matrix.target }}
- override: true
+ targets: ${{ matrix.target }}
- run: ${{ matrix.deps }}
- run: cargo check --all-features
- run: cargo test --release --all-features
@@ -57,12 +55,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- target: ${{ matrix.target }}
- override: true
+ targets: ${{ matrix.target }}
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: cd ../nucypher-core-wasm && wasm-pack test --node
@@ -77,12 +73,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- target: ${{ matrix.target }}
- override: true
+ targets: ${{ matrix.target }}
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: make
working-directory: nucypher-core-wasm
@@ -107,12 +101,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- target: ${{ matrix.target }}
- override: true
+ targets: ${{ matrix.target }}
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: bahmutov/npm-install@v1
with:
@@ -136,11 +128,9 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- override: true
- name: Install nucypher-core Python package
run: pip install -e .
@@ -171,12 +161,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: stable
- target: x86_64-unknown-linux-gnu
- override: true
+ targets: x86_64-unknown-linux-gnu
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
# Only checking the coverage of the main library,
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index eb804fcf..1e136edb 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -22,11 +22,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
- profile: minimal
toolchain: stable
- override: true
- if: runner.os == 'Windows'
run: |
diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml
index 7a0c7a26..c84af709 100644
--- a/.github/workflows/workspace.yml
+++ b/.github/workflows/workspace.yml
@@ -21,12 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
- override: true
- profile: minimal
- run: cargo clippy --all --all-features -- -D warnings
rustfmt:
@@ -36,12 +34,10 @@ jobs:
uses: actions/checkout@v1
- name: Install stable toolchain
- uses: actions-rs/toolchain@v1
+ uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
- profile: minimal
- override: true
- name: Run cargo fmt
uses: actions-rs/cargo@v1