forked from mirrors/jj
github: move off of unmaintained actions-rs actions
This commit is contained in:
parent
416f2b2a24
commit
9f01456f84
2 changed files with 9 additions and 32 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -32,21 +32,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- name: Install Rust (${{ matrix.rust_version }})
|
- name: Install Rust (${{ matrix.rust_version }})
|
||||||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust_version }}
|
toolchain: ${{ matrix.rust_version }}
|
||||||
override: true
|
|
||||||
profile: minimal
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
run: cargo build --workspace --verbose
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --workspace --verbose
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
run: cargo test --workspace --verbose
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --workspace --verbose
|
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
@ -55,16 +47,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
- uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
profile: minimal
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
override: true
|
- run: cargo fmt --all -- --check
|
||||||
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
cargo-deny:
|
cargo-deny:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -90,13 +77,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
||||||
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
- uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
|
||||||
components: clippy
|
components: clippy
|
||||||
override: true
|
- run: cargo clippy --all-features --workspace --all-targets -- -D warnings
|
||||||
- uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
args: --all-features --workspace --all-targets -- -D warnings
|
|
||||||
|
|
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -35,17 +35,12 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools
|
sudo apt-get install -y --no-install-recommends xz-utils liblz4-tool musl-tools
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
uses: dtolnay/rust-toolchain@ba37adf8f94a7d9affce79bd3baff1b9e3189c33
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
profile: minimal
|
|
||||||
override: true
|
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
- name: Build release binary
|
- name: Build release binary
|
||||||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
run: cargo build --target ${{ matrix.target }} --verbose --release
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --target ${{ matrix.target }} --verbose --release
|
|
||||||
- name: Build archive
|
- name: Build archive
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue