mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 07:10:36 +00:00
ci: 👷 Update CI to run in parallel
This commit is contained in:
parent
5a150b5087
commit
03780132d2
45
.github/workflows/ci.yaml
vendored
45
.github/workflows/ci.yaml
vendored
@ -16,7 +16,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
continuous-integration:
|
continuous-integration:
|
||||||
name: Checks
|
name: cargo ${{ matrix.action.command }} - ${{ matrix.job.os }}
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -29,6 +29,19 @@ jobs:
|
|||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
os-name: windows
|
os-name: windows
|
||||||
binary-postfix: ".exe"
|
binary-postfix: ".exe"
|
||||||
|
action:
|
||||||
|
- command: build
|
||||||
|
args: --release
|
||||||
|
- command: test
|
||||||
|
args: --all-features --workspace
|
||||||
|
- command: fmt
|
||||||
|
args: --all -- --check
|
||||||
|
- command: clippy
|
||||||
|
args: --all-targets --all-features --workspace -- -D warnings
|
||||||
|
- command: doc
|
||||||
|
args: --no-deps --document-private-items --all-features --workspace --examples
|
||||||
|
- command: publish
|
||||||
|
args: --dry-run
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ matrix.job.os == 'ubuntu-latest' }}
|
if: ${{ matrix.job.os == 'ubuntu-latest' }}
|
||||||
@ -45,34 +58,10 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: ${{ matrix.action.command }}
|
||||||
args: --release
|
args: ${{ matrix.action.args }}
|
||||||
- name: Test suite
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --all-features --workspace
|
|
||||||
- name: Format check
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
- name: Clippy check
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: --all-targets --all-features --workspace -- -D warnings
|
|
||||||
- name: Docs
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --no-deps --document-private-items --all-features --workspace --examples
|
|
||||||
- name: Publish dry run
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: publish
|
|
||||||
args: --dry-run
|
|
||||||
- name: Archive artifact
|
- name: Archive artifact
|
||||||
|
if: ${{ matrix.action.command == 'build' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: espup-${{ matrix.job.os-name }}${{ matrix.job.binary-postfix }}
|
name: espup-${{ matrix.job.os-name }}${{ matrix.job.binary-postfix }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user