Get rid of most actions-rs bits
Given that that project is unmaintained. https://github.com/actions-rs/toolchain/issues/216
This commit is contained in:
parent
90999e1bd1
commit
9afb0e111a
5 changed files with 21 additions and 76 deletions
19
.github/workflows/check.yml
vendored
19
.github/workflows/check.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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:
|
||||
|
|
@ -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
|
||||
|
|
@ -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
.github/workflows/nostd.yml
vendored
5
.github/workflows/nostd.yml
vendored
|
|
@ -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
.github/workflows/safety.yml
vendored
22
.github/workflows/safety.yml
vendored
|
|
@ -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"
|
||||
|
|
@ -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:
|
||||
|
|
@ -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
.github/workflows/scheduled.yml
vendored
18
.github/workflows/scheduled.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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
.github/workflows/test.yml
vendored
33
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue