Skip to content

Commit

Permalink
♻️ Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Oct 22, 2023
1 parent 04d56c9 commit a8a9f55
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
64 changes: 29 additions & 35 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,84 +1,78 @@
name: Rust CI
on: [push]

env:
CARGO_TERM_COLOR: always

jobs:
cargo-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- uses: taiki-e/install-action@nextest
- name: cargo test
run: cargo test --all --all-features
run: cargo nextest run --workspace --all --all-features --locked
cargo-lint:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
profile: minimal
components: rustfmt, clippy
override: true
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- name: cargo fmt
run: cargo +nightly fmt --all -- --check
- name: cargo clippy
run: cargo +nightly clippy --all --all-features -- -D warnings
run: cargo +nightly clippy --workspace --all --all-features --locked -- -D warnings
cargo-build:
runs-on: ubuntu-latest
timeout-minutes: 20
continue-on-error: true
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install prereqs
run: sudo apt-get install xsltproc clang gcc
- name: build
id: build
continue-on-error: true
run: cargo build --all
run: cargo build --workspace --all --locked
cargo-doc:
runs-on: ubuntu-latest
timeout-minutes: 20
continue-on-error: true
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
target: ${{ env.TARGET }}
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Install xsltproc
run: sudo apt-get install -y xsltproc
- name: doclint
id: build
continue-on-error: true
run: RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --all-features --document-private-items
- name: doctest
run: cargo test --doc --all --all-features
run: cargo test --doc --all --all-features --locked

4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/mipsevm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ revm = { version = "3.3.0", features = ["no_gas_measuring"] }
rustc-hash = "1.1.0"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
xkcp-rs = { git = "https://github.com/DaniPopes/xkcp-rs" }
xkcp-rs = { git = "https://github.com/DaniPopes/xkcp-rs", rev = "08bc699" }

# misc
anyhow = "1.0.75"
Expand Down

0 comments on commit a8a9f55

Please sign in to comment.