aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-07-29 16:32:06 -0400
committerJesse Luehrs <doy@tozt.net>2023-07-29 16:32:06 -0400
commitb18176cf845f16c903646c418c0323a6e597f73f (patch)
treed755853aca453c71e35372ff24e1730140d25a1a /.github
parent4c4788aa07fcbe44237657d1c9101a49861b3dd9 (diff)
downloadrbw-b18176cf845f16c903646c418c0323a6e597f73f.tar.gz
rbw-b18176cf845f16c903646c418c0323a6e597f73f.zip
stop using actions-rs, it is unmaintained
https://github.com/actions-rs/toolchain/issues/216
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/tests.yaml81
1 files changed, 18 insertions, 63 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index ad9dc92..cf47440 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -8,95 +8,50 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: actions-rs/cargo@v1
- with:
- command: build
- args: --all-targets
+ - uses: dtolnay/rust-toolchain@stable
+ - run: cargo build --all-targets
build-musl:
runs-on: ubuntu-latest
steps:
# ring only supports building with clang under musl
- run: sudo apt-get install clang-11
- - run: echo "TARGET_CC=clang-11" >> "$GITHUB_ENV"
- - run: echo "TARGET_AR=llvm-ar-11" >> "$GITHUB_ENV"
-
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
- target: x86_64-unknown-linux-musl
- - uses: actions-rs/cargo@v1
- with:
- command: build
- args: --all-targets --target x86_64-unknown-linux-musl
- env:
- TARGET_CC: "${{ env.TARGET_CC }}"
- TARGET_AR: "${{ env.TARGET_AR }}"
+ targets: x86_64-unknown-linux-musl
+ - run: TARGET_CC=clang-11 TARGET_AR=llvm-ar-11 cargo build --all-targets --target x86_64-unknown-linux-musl
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: actions-rs/cargo@v1
- with:
- command: build
- args: --all-targets
+ - uses: dtolnay/rust-toolchain@stable
+ - run: cargo build --all-targets
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: actions-rs/cargo@v1
- with:
- command: test
+ - uses: dtolnay/rust-toolchain@stable
+ - run: cargo test
test-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: actions-rs/cargo@v1
- with:
- command: test
+ - uses: dtolnay/rust-toolchain@stable
+ - run: cargo test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- toolchain: stable
components: clippy, rustfmt
- - uses: actions-rs/cargo@v1
- with:
- command: install
- args: --locked cargo-deny
- - uses: actions-rs/clippy-check@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- args: --all-targets
- - uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --check
- - uses: actions-rs/cargo@v1
- with:
- command: deny
- args: check
+ - run: cargo install --locked --debug cargo-deny
+ - run: cargo clippy --all-targets -- -Dwarnings
+ - run: cargo fmt --check
+ - run: cargo deny check
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- - uses: actions-rs/cargo@v1
- with:
- command: doc
+ - uses: dtolnay/rust-toolchain@stable
+ - run: cargo doc