Skip to content

Commit

Permalink
chore: update ci toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Feb 11, 2024
1 parent b9e93f7 commit d6adb8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 60 deletions.
70 changes: 12 additions & 58 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,112 +14,66 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features
run: cargo nextest run --all-features

test_miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
components: miri

- uses: taiki-e/install-action@nextest

- name: Run cargo miri
uses: actions-rs/cargo@v1
with:
command: miri
args: nextest run -j16 --no-default-features --features std,serde,flume,derive
run: cargo miri nextest run -j16 --no-default-features --features std,serde,flume,derive

test_nostd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --no-default-features
run: cargo nextest run --no-default-features

lint_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- uses: dtolnay/rust-toolchain@stable
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
run: cargo doc --doc --all-features

test_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- uses: dtolnay/rust-toolchain@stable
- name: Run cargo test (doc)
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --all-features
run: cargo test --doc --all-features

coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install nightly
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
override: true
profile: minimal
components: miri

- uses: taiki-e/install-action@cargo-tarpaulin

- name: Run cargo tarpaulin
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --all-features --out Xml --engine llvm
run: cargo tarpaulin --all-features --out Xml --engine llvm

- name: Upload to codecov.io
uses: codecov/codecov-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@1.70.0
- uses: dtolnay/rust-toolchain@master
with:
target: wasm32-unknown-unknown
targets: wasm32-unknown-unknown
- run: cargo build --release --package asteroids --target wasm32-unknown-unknown --manifest-path=asteroids/Cargo.toml
- run: mv ./target/wasm32-unknown-unknown/release/asteroids.wasm ./asteroids/public
- name: Upload Artefact
Expand Down

0 comments on commit d6adb8a

Please sign in to comment.