Skip to content

Commit

Permalink
Update workflow targets
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 8, 2023
1 parent aa51d57 commit 2b52390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-gnu
- i686-pc-windows-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin

Expand All @@ -33,8 +32,6 @@ jobs:
target-apt-arch: arm64
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: i686-pc-windows-gnu
os: windows-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
Expand Down Expand Up @@ -90,14 +87,14 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --release --target ${{ matrix.target }}
args: --all-features --release

- name: Test 🧪
if: matrix.target != 'aarch64-apple-darwin'
if: matrix.target != 'aarch64-apple-darwin' || matrix.target != 'aarch64-unknown-linux-gnu'
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --release --target ${{ matrix.target }}
args: --all-features --release

lint:
name: lint
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ features = ["codec-aom"]
default-features = false
optional = true

[target.'cfg(not(macos))'.dependencies.jpegxl-rs]
[target.'cfg(not(target_os = "macos"))'.dependencies.jpegxl-rs]
version = "0.8.2+libjxl-0.8.2"
default-features = false
features = ["vendored"]
optional = true

[target.'cfg(macos)'.dependencies.jpegxl-rs]
[target.'cfg(target_os = "macos")'.dependencies.jpegxl-rs]
version = "0.8.2+libjxl-0.8.2"
default-features = false
optional = true
Expand Down

0 comments on commit 2b52390

Please sign in to comment.