Skip to content

Commit

Permalink
Fix Windows GitHub Actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cycraig committed Sep 7, 2022
1 parent 7e05ed9 commit 532c3ed
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
name: Run tests and doctests on ubuntu
name: Run tests and doctests
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
Expand All @@ -27,16 +27,29 @@ jobs:
with:
cache-on-failure: true
- name: build
if: matrix.os != 'windows-latest'
run: cargo build -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}
- name: build
if: matrix.os == 'windows-latest'
run: cargo build -v --no-default-features --features "$env:FEATURES"
env:
FEATURES: ${{ matrix.features }}
- name: test
if: ${{ matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly' }}
if: ${{ matrix.os != 'windows-latest' && (matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly') }}
run: >
cargo test -v --no-default-features --features "$FEATURES" &&
cargo doc -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}
- name: test
if: ${{ matrix.os == 'windows-latest' && (matrix.rust == 'stable' || matrix.rust == 'beta' || matrix.rust == 'nightly') }}
run: >
cargo test -v --no-default-features --features "$env:FEATURES" &&
cargo doc -v --no-default-features --features "$env:FEATURES"
env:
FEATURES: ${{ matrix.features }}

build_big_endian:
name: Run tests on big endian architecture
Expand Down

0 comments on commit 532c3ed

Please sign in to comment.