Skip to content

Commit

Permalink
Generalized executable path for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvyria committed Mar 21, 2024
1 parent f09c4d4 commit 1efaeb7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ jobs:

- name: Build
run: |
nix-shell .github/shell.nix --argstr target ${{ matrix.target }} --run \
"cargo build --locked --profile release --features Sass,Wayland,X11"
nix-shell .github/shell.nix --argstr target ${{ matrix.target }} --run "
cargo build --locked --profile release --features Sass,Wayland,X11
"
- name: Find Executable
run: |
find target/${{ matrix.target }}/release -maxdepth 1 -type f -executable -exec echo binary={} \; >> "$GITHUB_ENV"
- name: Patch ELF
run: |
nix-shell .github/shell.nix --argstr target ${{ matrix.target }} --run \
"patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 target/${{ matrix.target }}/release/mixxc"
nix-shell .github/shell.nix --argstr target ${{ matrix.target }} --run "
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ${{ env.binary }}
patchelf --remove-rpath ${{ env.binary }}
"
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 1efaeb7

Please sign in to comment.