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:
|
with:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: cargo fmt --check
|
- name: cargo fmt --check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo fmt --check
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --check
|
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ${{ matrix.toolchain }} / clippy
|
name: ${{ matrix.toolchain }} / clippy
|
||||||
|
|
@ -50,10 +47,7 @@ jobs:
|
||||||
- name: Install nightly
|
- name: Install nightly
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: cargo doc
|
- name: cargo doc
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --no-deps --all-features
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --no-deps --all-features
|
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: --cfg docsrs
|
RUSTDOCFLAGS: --cfg docsrs
|
||||||
hack:
|
hack:
|
||||||
|
|
@ -68,10 +62,7 @@ jobs:
|
||||||
- name: cargo install cargo-hack
|
- name: cargo install cargo-hack
|
||||||
uses: taiki-e/install-action@cargo-hack
|
uses: taiki-e/install-action@cargo-hack
|
||||||
- name: cargo hack
|
- name: cargo hack
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo hack --feature-powerset check --lib --tests
|
||||||
with:
|
|
||||||
command: hack
|
|
||||||
args: --feature-powerset check --lib --tests
|
|
||||||
msrv:
|
msrv:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# we use a matrix here just because env can't be used in job names
|
# we use a matrix here just because env can't be used in job names
|
||||||
|
|
@ -89,6 +80,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.msrv }}
|
toolchain: ${{ matrix.msrv }}
|
||||||
- name: cargo +${{ matrix.msrv }} check
|
- name: cargo +${{ matrix.msrv }} check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
|
|
|
||||||
5
.github/workflows/nostd.yml
vendored
5
.github/workflows/nostd.yml
vendored
|
|
@ -19,7 +19,4 @@ jobs:
|
||||||
- name: rustup target add ${{ matrix.target }}
|
- name: rustup target add ${{ matrix.target }}
|
||||||
run: rustup target add ${{ matrix.target }}
|
run: rustup target add ${{ matrix.target }}
|
||||||
- name: cargo check
|
- name: cargo check
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo check --target ${{ matrix.target }} --no-default-features
|
||||||
with:
|
|
||||||
command: check
|
|
||||||
args: --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
|
cat Cargo.toml
|
||||||
name: Enable debug symbols
|
name: Enable debug symbols
|
||||||
- name: cargo test -Zsanitizer=address
|
- name: cargo test -Zsanitizer=address
|
||||||
uses: actions-rs/cargo@v1
|
# only --lib --tests b/c of https://github.com/rust-lang/rust/issues/53945
|
||||||
with:
|
run: cargo test --lib --tests --all-features --target x86_64-unknown-linux-gnu
|
||||||
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
|
|
||||||
env:
|
env:
|
||||||
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0"
|
ASAN_OPTIONS: "detect_odr_violation=0:detect_leaks=0"
|
||||||
RUSTFLAGS: "-Z sanitizer=address"
|
RUSTFLAGS: "-Z sanitizer=address"
|
||||||
- name: cargo test -Zsanitizer=leak
|
- name: cargo test -Zsanitizer=leak
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --all-features --target x86_64-unknown-linux-gnu
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --all-features --target x86_64-unknown-linux-gnu
|
|
||||||
env:
|
env:
|
||||||
LSAN_OPTIONS: "suppressions=lsan-suppressions.txt"
|
LSAN_OPTIONS: "suppressions=lsan-suppressions.txt"
|
||||||
RUSTFLAGS: "-Z sanitizer=leak"
|
RUSTFLAGS: "-Z sanitizer=leak"
|
||||||
|
|
@ -53,10 +47,7 @@ jobs:
|
||||||
toolchain: ${{ env.NIGHTLY }}
|
toolchain: ${{ env.NIGHTLY }}
|
||||||
components: miri
|
components: miri
|
||||||
- name: cargo miri test
|
- name: cargo miri test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo miri test
|
||||||
with:
|
|
||||||
command: miri
|
|
||||||
args: test
|
|
||||||
env:
|
env:
|
||||||
MIRIFLAGS: "-Zmiri-tag-raw-pointers"
|
MIRIFLAGS: "-Zmiri-tag-raw-pointers"
|
||||||
loom:
|
loom:
|
||||||
|
|
@ -68,10 +59,7 @@ jobs:
|
||||||
- name: Install stable
|
- name: Install stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: cargo test --test loom
|
- name: cargo test --test loom
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --release --test loom
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --release --test loom
|
|
||||||
env:
|
env:
|
||||||
LOOM_MAX_PREEMPTIONS: 2
|
LOOM_MAX_PREEMPTIONS: 2
|
||||||
RUSTFLAGS: "--cfg loom"
|
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
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: cargo generate-lockfile
|
- name: cargo generate-lockfile
|
||||||
if: hashFiles('Cargo.lock') == ''
|
if: hashFiles('Cargo.lock') == ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo generate-lockfile
|
||||||
with:
|
|
||||||
command: generate-lockfile
|
|
||||||
- name: cargo test --locked
|
- name: cargo test --locked
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
# https://twitter.com/alcuadrado/status/1571291687837732873
|
# https://twitter.com/alcuadrado/status/1571291687837732873
|
||||||
update:
|
update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -43,14 +38,9 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@beta
|
uses: dtolnay/rust-toolchain@beta
|
||||||
- name: cargo update
|
- name: cargo update
|
||||||
if: hashFiles('Cargo.lock') != ''
|
if: hashFiles('Cargo.lock') != ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo update
|
||||||
with:
|
|
||||||
command: update
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
if: hashFiles('Cargo.lock') != ''
|
if: hashFiles('Cargo.lock') != ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -D deprecated
|
RUSTFLAGS: -D deprecated
|
||||||
|
|
|
||||||
33
.github/workflows/test.yml
vendored
33
.github/workflows/test.yml
vendored
|
|
@ -20,15 +20,10 @@ jobs:
|
||||||
toolchain: ${{ matrix.toolchain }}
|
toolchain: ${{ matrix.toolchain }}
|
||||||
- name: cargo generate-lockfile
|
- name: cargo generate-lockfile
|
||||||
if: hashFiles('Cargo.lock') == ''
|
if: hashFiles('Cargo.lock') == ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo generate-lockfile
|
||||||
with:
|
|
||||||
command: generate-lockfile
|
|
||||||
# https://twitter.com/jonhoo/status/1571290371124260865
|
# https://twitter.com/jonhoo/status/1571290371124260865
|
||||||
- name: cargo test --locked
|
- name: cargo test --locked
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
minimal:
|
minimal:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ubuntu / stable / minimal-versions
|
name: ubuntu / stable / minimal-versions
|
||||||
|
|
@ -43,16 +38,9 @@ jobs:
|
||||||
- name: rustup default stable
|
- name: rustup default stable
|
||||||
run: rustup default stable
|
run: rustup default stable
|
||||||
- name: cargo update -Zminimal-versions
|
- name: cargo update -Zminimal-versions
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo +nightly update -Zminimal-versions
|
||||||
with:
|
|
||||||
command: update
|
|
||||||
toolchain: nightly
|
|
||||||
args: -Zminimal-versions
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
os-check:
|
os-check:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} / stable
|
name: ${{ matrix.os }} / stable
|
||||||
|
|
@ -68,14 +56,9 @@ jobs:
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: cargo generate-lockfile
|
- name: cargo generate-lockfile
|
||||||
if: hashFiles('Cargo.lock') == ''
|
if: hashFiles('Cargo.lock') == ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo generate-lockfile
|
||||||
with:
|
|
||||||
command: generate-lockfile
|
|
||||||
- name: cargo test
|
- name: cargo test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --locked --all-features --all-targets
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --locked --all-features --all-targets
|
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: ubuntu / stable / coverage
|
name: ubuntu / stable / coverage
|
||||||
|
|
@ -91,9 +74,7 @@ jobs:
|
||||||
uses: taiki-e/install-action@cargo-llvm-cov
|
uses: taiki-e/install-action@cargo-llvm-cov
|
||||||
- name: cargo generate-lockfile
|
- name: cargo generate-lockfile
|
||||||
if: hashFiles('Cargo.lock') == ''
|
if: hashFiles('Cargo.lock') == ''
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo generate-lockfile
|
||||||
with:
|
|
||||||
command: generate-lockfile
|
|
||||||
- name: cargo llvm-cov
|
- name: cargo llvm-cov
|
||||||
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
|
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
|
||||||
- name: Upload to codecov.io
|
- name: Upload to codecov.io
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue