ci: Remove CI jobs

This commit is contained in:
Sergio Gasquez 2023-10-04 11:06:00 +02:00 committed by Sergio Gasquez Arcos
parent 9bfde2d8af
commit 7a0a7ff712
2 changed files with 8 additions and 13 deletions

View File

@ -37,9 +37,14 @@ jobs:
target: ${{ matrix.job.target }}
- name: Enable caching
uses: Swatinem/rust-cache@v2
- name: Publish (dry-run)
if: matrix.job.target == 'x86_64-unknown-linux-gnu'
run: cargo publish --dry-run
- name: Install cross and build
if: matrix.job.target == 'aarch64-unknown-linux-gnu'
run: cargo install cross && cross build --release --target ${{ matrix.job.target }}
run: |
cargo install cross
cross build --release --target ${{ matrix.job.target }}
- name: Cargo build
if: matrix.job.target != 'aarch64-unknown-linux-gnu'
run: cargo build --release --target ${{ matrix.job.target }}

View File

@ -23,7 +23,7 @@ env:
jobs:
cargo-checks:
name: cargo ${{ matrix.action.command }} - ${{ matrix.job.os }}
name: cargo ${{ matrix.action.command }} | ${{ matrix.job.os }}
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
@ -35,10 +35,8 @@ jobs:
os-name: linux
- os: windows-latest
os-name: windows
binary-postfix: ".exe"
action:
- command: build
args: --release
- command: check
- command: test
args: --all-features --workspace
- command: fmt
@ -47,8 +45,6 @@ jobs:
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:
- name: Install dependencies
if: ${{ matrix.job.os == 'ubuntu-20.04' }}
@ -64,12 +60,6 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Cargo command
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
- name: Archive artifact
if: ${{ matrix.action.command == 'build' }}
uses: actions/upload-artifact@v3
with:
name: espup-${{ matrix.job.os-name }}${{ matrix.job.binary-postfix }}
path: target/release/espup${{ matrix.job.binary-postfix }}
msrv:
name: MSRV check
runs-on: ubuntu-20.04