Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove uses of unmaintained actions-rs/cargo #1023

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
DaughterOfMars marked this conversation as resolved.
Show resolved Hide resolved
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
Loading