Skip to content

Commit

Permalink
Attempt to speedup CI steps (ref #449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Apr 11, 2023
1 parent d73369e commit 2568a72
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:

macos-build:
macos-check:
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build target
run: cargo build --release --target=${{ matrix.target }} --features native-tls/vendored --locked
run: cargo check --target=${{ matrix.target }} --features native-tls/vendored --locked

strategy:
fail-fast: true
Expand Down Expand Up @@ -73,8 +73,8 @@ jobs:

- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build target
run: cargo test --release --target=${{ matrix.target }} --locked
- name: Check target
run: cargo test --target=${{ matrix.target }} --locked

strategy:
fail-fast: true
Expand All @@ -84,7 +84,7 @@ jobs:
- x86_64-apple-darwin


linux-build:
linux-check:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
Expand All @@ -110,8 +110,8 @@ jobs:

- name: Install cross
run: cargo install cross --locked
- name: Build target using cross
run: cross build --release --target=${{ matrix.target }} --features native-tls/vendored --locked
- name: Check target using cross
run: cross check --target=${{ matrix.target }} --features native-tls/vendored --locked

strategy:
fail-fast: true
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
- name: Install cross
run: cargo install cross --locked
- name: Build target using cross
run: cross test --release --target=${{ matrix.target }} --features native-tls/vendored --locked
run: cross test --target=${{ matrix.target }} --features native-tls/vendored --locked

strategy:
fail-fast: true
Expand Down Expand Up @@ -205,9 +205,6 @@ jobs:
registry-url: "https://npm.pkg.github.com"

if: matrix.target == 'x86_64-unknown-linux-musl'
- run: cargo build --features integration-tests,cli,native-tls/vendored
if: matrix.target == 'x86_64-unknown-linux-musl'
shell: bash

- name: Install NPM Packages.
if: matrix.target == 'x86_64-unknown-linux-musl'
Expand Down

0 comments on commit 2568a72

Please sign in to comment.