Skip to content

Commit

Permalink
fix: add powerpc64le target to trampoline (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts authored Nov 6, 2024
1 parent 13f5350 commit c2ea77b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/trampoline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ on:
push:
paths:
- 'crates/pixi_trampoline/**'
- '.github/workflows/trampoline.yaml'
- 'src/global/trampoline.rs'
workflow_dispatch:
pull_request:
paths:
- 'crates/pixi_trampoline/**'
- '.github/workflows/trampoline.yaml'
- 'src/global/trampoline.rs'

permissions:
contents: write # Allow write permissions for contents (like pushing to the repo)
Expand All @@ -25,6 +29,7 @@ jobs:
include:
- { name: "Linux-x86_64", target: x86_64-unknown-linux-musl, os: ubuntu-latest }
- { name: "Linux-aarch64", target: aarch64-unknown-linux-musl, os: ubuntu-latest }
- { name: "Linux-powerpc64", target: powerpc64-unknown-linux-gnu, os: ubuntu-latest }
- { name: "macOS-x86", target: x86_64-apple-darwin, os: macos-13 }
- { name: "macOS-arm", target: aarch64-apple-darwin, os: macos-14 }
- { name: "Windows", target: x86_64-pc-windows-msvc, os: windows-latest }
Expand Down
6 changes: 6 additions & 0 deletions src/global/trampoline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-x86_64-pc-windows-msvc.exe.zst"
);

#[cfg(target_arch = "powerpc64")]
#[cfg(target_os = "linux")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
"../../crates/pixi_trampoline/trampolines/pixi-trampoline-powerpc64le-unknown-linux-gnu.zst"
);

#[cfg(target_arch = "x86_64")]
#[cfg(target_os = "linux")]
const TRAMPOLINE_BIN: &[u8] = include_bytes!(
Expand Down

0 comments on commit c2ea77b

Please sign in to comment.