Skip to content

Commit

Permalink
Get rid of most actions-rs bits
Browse files Browse the repository at this point in the history
Given that that project is unmaintained.

actions-rs/toolchain#216
  • Loading branch information
jonhoo authored and 0x61nas committed Jan 29, 2024
1 parent ae0e4d9 commit 7c0cccf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 76 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/check.yml
Expand Up @@ -16,10 +16,7 @@ jobs:
with:
components: rustfmt
- name: cargo fmt --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
run: cargo fmt --check
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
Expand Down Expand Up @@ -50,10 +47,7 @@ jobs:
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: --cfg docsrs
hack:
Expand All @@ -68,10 +62,7 @@ jobs:
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
uses: actions-rs/cargo@v1
with:
command: hack
args: --feature-powerset check --lib --tests
run: cargo hack --feature-powerset check --lib --tests
msrv:
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
Expand All @@ -89,6 +80,4 @@ jobs:
with:
toolchain: ${{ matrix.msrv }}
- name: cargo +${{ matrix.msrv }} check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check
5 changes: 1 addition & 4 deletions .github/workflows/nostd.yml
Expand Up @@ -19,7 +19,4 @@ jobs:
- name: rustup target add ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: --target ${{ matrix.target }} --no-default-features
run: cargo check --target ${{ matrix.target }} --no-default-features
22 changes: 5 additions & 17 deletions .github/workflows/safety.yml
Expand Up @@ -22,20 +22,14 @@ jobs:
cat Cargo.toml
name: Enable debug symbols
- name: cargo test -Zsanitizer=address
uses: actions-rs/cargo@v1
with:
command: test
# only --lib --tests b/c of https://github.com/rust-lang/rust/issues/53945
args: --lib --tests --all-features --target x86_64-unknown-linux-gnu
# only --lib --tests b/c of https://github.com/rust-lang/rust/issues/53945
run: cargo test --lib --tests --all-features --target x86_64-unknown-linux-gnu
env:
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0"
RUSTFLAGS: "-Z sanitizer=address"
- name: cargo test -Zsanitizer=leak
if: always()
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --target x86_64-unknown-linux-gnu
run: cargo test --all-features --target x86_64-unknown-linux-gnu
env:
LSAN_OPTIONS: "suppressions=lsan-suppressions.txt"
RUSTFLAGS: "-Z sanitizer=leak"
Expand All @@ -53,10 +47,7 @@ jobs:
toolchain: ${{ env.NIGHTLY }}
components: miri
- name: cargo miri test
uses: actions-rs/cargo@v1
with:
command: miri
args: test
run: cargo miri test
env:
MIRIFLAGS: "-Zmiri-tag-raw-pointers"
loom:
Expand All @@ -68,10 +59,7 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: cargo test --test loom
uses: actions-rs/cargo@v1
with:
command: test
args: --release --test loom
run: cargo test --release --test loom
env:
LOOM_MAX_PREEMPTIONS: 2
RUSTFLAGS: "--cfg loom"
18 changes: 4 additions & 14 deletions .github/workflows/scheduled.yml
Expand Up @@ -18,14 +18,9 @@ jobs:
uses: dtolnay/rust-toolchain@nightly
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
run: cargo generate-lockfile
- name: cargo test --locked
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
run: cargo test --locked --all-features --all-targets
# https://twitter.com/alcuadrado/status/1571291687837732873
update:
runs-on: ubuntu-latest
Expand All @@ -43,14 +38,9 @@ jobs:
uses: dtolnay/rust-toolchain@beta
- name: cargo update
if: hashFiles('Cargo.lock') != ''
uses: actions-rs/cargo@v1
with:
command: update
run: cargo update
- name: cargo test
if: hashFiles('Cargo.lock') != ''
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
run: cargo test --locked --all-features --all-targets
env:
RUSTFLAGS: -D deprecated
33 changes: 7 additions & 26 deletions .github/workflows/test.yml
Expand Up @@ -20,15 +20,10 @@ jobs:
toolchain: ${{ matrix.toolchain }}
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
run: cargo generate-lockfile
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
run: cargo test --locked --all-features --all-targets
minimal:
runs-on: ubuntu-latest
name: ubuntu / stable / minimal-versions
Expand All @@ -43,16 +38,9 @@ jobs:
- name: rustup default stable
run: rustup default stable
- name: cargo update -Zminimal-versions
uses: actions-rs/cargo@v1
with:
command: update
toolchain: nightly
args: -Zminimal-versions
run: cargo +nightly update -Zminimal-versions
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
run: cargo test --locked --all-features --all-targets
os-check:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / stable
Expand All @@ -68,14 +56,9 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
run: cargo generate-lockfile
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked --all-features --all-targets
run: cargo test --locked --all-features --all-targets
coverage:
runs-on: ubuntu-latest
name: ubuntu / stable / coverage
Expand All @@ -91,9 +74,7 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
run: cargo generate-lockfile
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Upload to codecov.io
Expand Down

0 comments on commit 7c0cccf

Please sign in to comment.