Split cargo fmt and cargo check into 2 workflows
This commit is contained in:
@@ -11,7 +11,7 @@ on: [push]
|
||||
# - '!third_party/**'
|
||||
|
||||
jobs:
|
||||
cargo:
|
||||
cargo_check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -28,24 +28,6 @@ jobs:
|
||||
- name: Set up OpenSK
|
||||
run: ./setup.sh
|
||||
|
||||
- name: Cargo format src/
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
- name: Cargo format libraries/cbor
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path libraries/cbor/Cargo.toml --all -- --check
|
||||
|
||||
- name: Cargo format libraries/crypto
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path libraries/crypto/Cargo.toml --all -- --check
|
||||
|
||||
- name: Check OpenSK w/o features
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
47
.github/workflows/cargo_fmt.yml
vendored
Normal file
47
.github/workflows/cargo_fmt.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Cargo format
|
||||
on: [push]
|
||||
# push:
|
||||
# paths:
|
||||
# - 'examples/*.rs'
|
||||
# - 'libraries/**/*.rs'
|
||||
# - 'src/**/*.rs'
|
||||
# - 'patches/**'
|
||||
# - '**/Cargo.toml'
|
||||
# - '.cargo/config'
|
||||
# - '!third_party/**'
|
||||
|
||||
jobs:
|
||||
cargo_format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
target: thumbv7em-none-eabi
|
||||
override: true
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Install Python dependencies
|
||||
run: python -m pip install --upgrade pip setuptools wheel
|
||||
- name: Set up OpenSK
|
||||
run: ./setup.sh
|
||||
|
||||
- name: Cargo format src/
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
- name: Cargo format libraries/cbor
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path libraries/cbor/Cargo.toml --all -- --check
|
||||
|
||||
- name: Cargo format libraries/crypto
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --manifest-path libraries/crypto/Cargo.toml --all -- --check
|
||||
Reference in New Issue
Block a user