mirror of
https://github.com/martinvonz/jj.git
synced 2024-11-28 17:41:14 +00:00
36a575ccbf
Bumps [actions-rs/cargo](https://github.com/actions-rs/cargo) from 1.0.1 to 1.0.3.
- [Release notes](https://github.com/actions-rs/cargo/releases)
- [Changelog](https://github.com/actions-rs/cargo/blob/master/CHANGELOG.md)
- [Commits](ae10961054...844f36862e
)
---
updated-dependencies:
- dependency-name: actions-rs/cargo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
87 lines
2.5 KiB
YAML
87 lines
2.5 KiB
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.operating-system }}
|
|
strategy:
|
|
matrix:
|
|
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
|
- name: Install Rust (stable)
|
|
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
profile: minimal
|
|
- name: Build
|
|
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
|
with:
|
|
command: build
|
|
args: --workspace --verbose
|
|
- name: Test
|
|
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
|
with:
|
|
command: test
|
|
args: --workspace --verbose
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
rustfmt:
|
|
name: Check formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
|
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
components: rustfmt
|
|
override: true
|
|
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
|
|
clippy-stable:
|
|
name: Clippy check (stable)
|
|
permissions: write-all
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
|
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
components: clippy
|
|
override: true
|
|
- uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --all-features --workspace
|
|
|
|
clippy-nightly:
|
|
name: Clippy check (nightly)
|
|
permissions: write-all
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
|
|
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
|
|
with:
|
|
toolchain: nightly
|
|
profile: minimal
|
|
components: clippy
|
|
override: true
|
|
- uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --all-features --workspace
|