Skip to content

Commit

Permalink
CI: Remove actions-rs GH actions from the CI where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Feb 4, 2024
1 parent b8d0a21 commit a901c5a
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/Skeptic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,52 +35,31 @@ jobs:

steps:
- name: Checkout Moka
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v1

- name: cargo clean
uses: actions-rs/cargo@v1
with:
command: clean

- name: Run tests (sync feature)
uses: actions-rs/cargo@v1
with:
command: test
args: --release --features sync
run: cargo test --release --features sync
env:
RUSTFLAGS: '--cfg skeptic'

- name: Run tests (release, sync and future)
uses: actions-rs/cargo@v1
with:
command: test
args: --release --features 'sync, future'
run: cargo test --release --features 'sync, future'
env:
RUSTFLAGS: '--cfg skeptic'

- name: Run tests (sync and future, without atomic64 and quanta)
uses: actions-rs/cargo@v1
with:
command: test
args: --release --no-default-features --features 'sync, future'
run: cargo test --release --no-default-features --features 'sync, future'
env:
RUSTFLAGS: '--cfg skeptic'

- name: Run compile error tests (sync and future features, trybuild)
uses: actions-rs/cargo@v1
if: ${{ matrix.rust == 'stable' }}
with:
command: test
args: ui_trybuild --release --features 'sync, future'
run: cargo test ui_trybuild --release --features 'sync, future'
env:
RUSTFLAGS: '--cfg trybuild'

0 comments on commit a901c5a

Please sign in to comment.