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

Get rid of actions-rs #59

Merged
merged 1 commit into from
Oct 16, 2023
Merged
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
59 changes: 30 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,33 @@ jobs:
RUST_MIN_STACK: 20971520

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Install Rust
run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
rustup default ${{ matrix.rust }}
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
echo RUST_BACKTRACE=1 >> $GITHUB_ENV

- uses: actions-rs/cargo@v1
with:
command: build
args: --features cryptographically-insecure
- name: build with cryptographically-insecure turned on (if available)
run: cargo build --features cryptographically-insecure

- uses: actions-rs/cargo@v1
with:
command: test
args: --features cryptographically-insecure
- name: Run tests with cryptographically-insecure turned on
run: cargo test --features cryptographically-insecure

- uses: actions-rs/cargo@v1
with:
command: check
args: --features serialization,cryptographically-insecure
- name: Run cargo check with all features
run: cargo check --all-features

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

- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings -A deprecated
- name: run Cargo clippy
run: cargo clipy -- -D warnings -A deprecated

wasi:
name: wasi
Expand All @@ -65,13 +57,22 @@ jobs:
- beta
- nightly
env:
CARGO_TERM_COLOR: always
# 20 MiB stack
RUST_MIN_STACK: 20971520
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

- name: Install Rust
run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
rustup default ${{ matrix.rust }}
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
echo RUST_BACKTRACE=1 >> $GITHUB_ENV

- name: Install WASI
run: cargo install cargo-wasi
- name: Install wasmtime
Expand Down
Loading