Skip to content

Commit

Permalink
Update targets
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Oct 8, 2023
1 parent 8d72305 commit aa51d57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker="aarch64-linux-gnu-gcc"
12 changes: 8 additions & 4 deletions .github/workflows/rimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- x86_64-pc-windows-gnu
- i686-pc-windows-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin

Expand All @@ -31,9 +31,9 @@ jobs:
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
target-apt-arch: arm64
- target: x86_64-pc-windows-msvc
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: i686-pc-windows-msvc
- target: i686-pc-windows-gnu
os: windows-latest
- target: x86_64-apple-darwin
os: macos-latest
Expand Down Expand Up @@ -75,6 +75,10 @@ jobs:
- name: Setup nasm 🧑‍💻
uses: ilammy/setup-nasm@v1

- name: Setup libjxl 🧑‍💻 (macos)
if: startsWith(matrix.os, 'macos')
run: brew install jpeg-xl

- name: Setup rust toolchain 🦀
uses: actions-rs/toolchain@v1
with:
Expand Down
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ features = ["codec-aom"]
default-features = false
optional = true

[dependencies.jpegxl-rs]
[target.'cfg(not(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]
version = "0.8.2+libjxl-0.8.2"
default-features = false
optional = true

[target.'cfg(windows)'.dependencies.glob]
optional = true
version = "0.3.1"

0 comments on commit aa51d57

Please sign in to comment.