ok/jj
1
0
Fork 0
forked from mirrors/jj

github: move off of unmaintained actions-rs actions

This commit is contained in:
Martin von Zweigbergk 2022-10-18 08:55:07 -07:00 committed by Martin von Zweigbergk
parent 416f2b2a24
commit 9f01456f84
2 changed files with 9 additions and 32 deletions

View file

@ -32,21 +32,13 @@ jobs:
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Install Rust (${{ matrix.rust_version }})
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
with:
toolchain: ${{ matrix.rust_version }}
override: true
profile: minimal
- name: Build
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
with:
command: build
args: --workspace --verbose
run: cargo build --workspace --verbose
- name: Test
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
with:
command: test
args: --workspace --verbose
run: cargo test --workspace --verbose
env:
RUST_BACKTRACE: 1
@ -55,16 +47,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
- uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
with:
toolchain: nightly
profile: minimal
components: rustfmt
override: true
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check
cargo-deny:
runs-on: ubuntu-latest
@ -90,13 +77,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
- uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
with:
toolchain: stable
profile: minimal
components: clippy
override: true
- uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --workspace --all-targets -- -D warnings
- run: cargo clippy --all-features --workspace --all-targets -- -D warnings

View file

@ -35,17 +35,12 @@ jobs:
sudo apt-get update
sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools
- name: Install Rust
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
- name: Build release binary
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
with:
command: build
args: --target ${{ matrix.target }} --verbose --release
run: cargo build --target ${{ matrix.target }} --verbose --release
- name: Build archive
shell: bash
run: |