Skip to content

Commit

Permalink
fix: steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mike committed Jul 19, 2024
1 parent 613b90d commit 493e946
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ on:

jobs:
build:
runs-on: ${{ matrix.runner }}
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
include:
platform:
- name: linux-amd64
runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
Expand All @@ -37,31 +37,31 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "${{ matrix.target }}"
targets: "${{ matrix.platform.target }}"

- name: Rust (Cargo) Caching
uses: Swatinem/rust-cache@v2

- name: Install ghostscript (for linux)
uses: awalsh128/cache-apt-pkgs-action@latest
if: runner.os == 'ubuntu-latest'
if: matrix.platform.runner == 'ubuntu-latest'
with:
packages: ghostscript
version: 1.0

- name: Install ghostscript (for windowns)
uses: crazy-max/ghaction-chocolatey@v3
if: runner.os == 'windows-latest'
if: matrix.platform.runner == 'windows-latest'
with:
args: install ghostscript


- name: Install ghostscript (for macos)
run: brew install ghostscript
if: runner.os == 'macos-latest'
if: matrix.platform.runner == 'macos-latest'

- name: Build
run: cargo build --verbose --locked --target ${{ matrix.target }}
run: cargo build --verbose --locked --target ${{ matrix.platform.target }}

- name: Run tests
run: cargo test --verbose --locked --target ${{ matrix.target }}
run: cargo test --verbose --locked --target ${{ matrix.platform.target }}

0 comments on commit 493e946

Please # to comment.