Skip to content

Commit

Permalink
Remove uses of unmaintained actions-rs/cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Aug 16, 2023
1 parent 5d2122f commit 7c9d93b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 47 deletions.
6 changes: 2 additions & 4 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,5 @@ runs:

- name: Install ${{ inputs.install }}
if: ${{ inputs.install != '' }}
uses: actions-rs/cargo@v1
with:
command: install
args: ${{ inputs.install }}
shell: bash
run: cargo install ${{ inputs.install }}
5 changes: 1 addition & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,4 @@ jobs:
uses: taiki-e/install-action@nextest

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features --profile ci --cargo-profile ci -p iota-sdk -p iota-sdk-bindings-core
run: cargo nextest run --all-features --profile ci --cargo-profile ci -p iota-sdk -p iota-sdk-bindings-core
9 changes: 3 additions & 6 deletions .github/workflows/cli-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
RELEASE_UPLOAD_URL: ${{ steps.create_release.outputs.upload_url }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: set version env variable
run: echo "CRATE_VERSION=$(cat cli/Cargo.toml | sed -n 's/.*version = "\([^"]*\)".*/\1/p' | head -1)" >> $GITHUB_ENV
- name: create release
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
ext: .exe

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: install rust stable
uses: dtolnay/rust-toolchain@stable

Expand Down Expand Up @@ -83,10 +83,7 @@ jobs:

# build the CLI
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path ./cli/Cargo.toml --profile production
run: cargo build --manifest-path ./cli/Cargo.toml --profile production

- name: Import code signing assets (macOS)
# Based on https://github.com/Apple-Actions/import-codesign-certs/blob/master/src/security.ts
Expand Down
39 changes: 10 additions & 29 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ jobs:
sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: Run Cargo Udeps
uses: actions-rs/cargo@v1
with:
command: udeps
args: --all-targets --all-features
run: cargo udeps --all-targets --all-features

check-format:
name: Check Format
Expand All @@ -112,22 +109,13 @@ jobs:
components: rustfmt

- name: Install cargo-license-template
uses: actions-rs/cargo@v1
with:
command: install
args: --force cargo-license-template
run: cargo install --force cargo-license-template

- name: Run Cargo Fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Run cargo-license-template
uses: actions-rs/cargo@v1
with:
command: license-template
args: --template .license_template
run: cargo license-template --template .license_template

audit:
name: Perform Security Audit
Expand All @@ -144,15 +132,11 @@ jobs:
install: cargo-audit

- name: Run Cargo Audit
uses: actions-rs/cargo@v1
with:
command: audit
# The ignored security advisories:
#
# - RUSTSEC-2021-0065: https://rustsec.org/advisories/RUSTSEC-2021-0065
# - anymap is unmaintained 🤷‍♀️

args: --file Cargo.lock --deny warnings --ignore RUSTSEC-2021-0145 --ignore RUSTSEC-2021-0065
# The ignored security advisories:
#
# - RUSTSEC-2021-0065: https://rustsec.org/advisories/RUSTSEC-2021-0065
# - anymap is unmaintained 🤷‍♀️
run: cargo audit --file Cargo.lock --deny warnings --ignore RUSTSEC-2021-0145 --ignore RUSTSEC-2021-0065

no_std:
name: Check `no_std` compatability
Expand All @@ -168,7 +152,4 @@ jobs:
targets: riscv64gc-unknown-none-elf

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features -F serde -p iota-sdk --target=riscv64gc-unknown-none-elf
run: cargo check --no-default-features -F serde -p iota-sdk --target=riscv64gc-unknown-none-elf
5 changes: 1 addition & 4 deletions .github/workflows/private-tangle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ jobs:
uses: "./.github/actions/ledger-nano"

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --tests --all-features --run-ignored ignored-only --profile ci --cargo-profile ci -p iota-sdk -p iota-sdk-bindings-core
run: cargo nextest run --tests --all-features --run-ignored ignored-only --profile ci --cargo-profile ci -p iota-sdk -p iota-sdk-bindings-core

- name: Tear down private tangle
if: always()
Expand Down

0 comments on commit 7c9d93b

Please sign in to comment.