Skip to content

Commit

Permalink
github actions: fix os-conditional step runs
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen authored May 18, 2020
1 parent 44183f4 commit a442ede
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
rust_channel: ["stable", "beta", "nightly", "1.38.0"]
include:
- rust_channel: "stable"
os: "macos-latest"
os: "macOS-latest"
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
Expand All @@ -29,13 +29,13 @@ jobs:
- name: Run tests
run: cargo test --verbose
- name: Run dwarfdump (macos)
if: matrix.os == "macos-latest"
if: matrix.os == 'macOS-latest'
run: |
cargo run --example dwarfdump -- \
$(find ./target/debug -type f | grep DWARF | grep gimli | head -n 1) \
> /dev/null
- name: Run dwarfdump (linux)
if: matrix.os == "ubuntu-latest"
if: matrix.os == 'ubuntu-latest'
run: |
cargo run --example dwarfdump -- \
$(find ./target/debug -type f -perm -100 | grep gimli | head -n 1) \
Expand Down

0 comments on commit a442ede

Please sign in to comment.