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 }} target: ${{ matrix.job.target }}
- name: Enable caching - name: Enable caching
uses: Swatinem/rust-cache@v2 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 - name: Install cross and build
if: matrix.job.target == 'aarch64-unknown-linux-gnu' 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 - name: Cargo build
if: matrix.job.target != 'aarch64-unknown-linux-gnu' if: matrix.job.target != 'aarch64-unknown-linux-gnu'
run: cargo build --release --target ${{ matrix.job.target }} run: cargo build --release --target ${{ matrix.job.target }}

View File

@ -23,7 +23,7 @@ env:
jobs: jobs:
cargo-checks: cargo-checks:
name: cargo ${{ matrix.action.command }} - ${{ matrix.job.os }} 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
@ -35,10 +35,8 @@ jobs:
os-name: linux os-name: linux
- os: windows-latest - os: windows-latest
os-name: windows os-name: windows
binary-postfix: ".exe"
action: action:
- command: build - command: check
args: --release
- command: test - command: test
args: --all-features --workspace args: --all-features --workspace
- command: fmt - command: fmt
@ -47,8 +45,6 @@ jobs:
args: --all-targets --all-features --workspace -- -D warnings args: --all-targets --all-features --workspace -- -D warnings
- command: doc - command: doc
args: --no-deps --document-private-items --all-features --workspace --examples 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-20.04' }} if: ${{ matrix.job.os == 'ubuntu-20.04' }}
@ -64,12 +60,6 @@ jobs:
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
- name: Cargo command - name: Cargo command
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }} 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: msrv:
name: MSRV check name: MSRV check
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04