Skip to content

Commit

Permalink
Build for Linux aarch64 (#1158)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 21, 2025
1 parent 59cda8a commit 49f7130
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/choreo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
os: ubuntu-22.04
tauri-build-flags: --target x86_64-unknown-linux-gnu -v -- --workspace --timings

- artifact-name: Linux-aarch64
os: ubuntu-22.04-arm
tauri-build-flags: --target aarch64-unknown-linux-gnu -v -- --workspace --timings

name: "${{ matrix.artifact-name }}"
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -123,6 +127,12 @@ jobs:
zip -j ${{ matrix.artifact-name }}-standalone.zip target/x86_64-unknown-linux-gnu/release/choreo target/x86_64-unknown-linux-gnu/release/choreo-cli
zip -j ${{ matrix.artifact-name }}.zip ${{ matrix.artifact-name }}-standalone.zip target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb target/x86_64-unknown-linux-gnu/release/bundle/rpm/*.rpm
- name: Package artifacts (Linux aarch64)
if: matrix.artifact-name == 'Linux-aarch64'
run: |
zip -j ${{ matrix.artifact-name }}-standalone.zip target/aarch64-unknown-linux-gnu/release/choreo target/aarch64-unknown-linux-gnu/release/choreo-cli
zip -j ${{ matrix.artifact-name }}.zip ${{ matrix.artifact-name }}-standalone.zip target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb target/aarch64-unknown-linux-gnu/release/bundle/rpm/*.rpm
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}-cargo-timing.html
Expand Down Expand Up @@ -195,6 +205,16 @@ jobs:
mv choreo_*_amd64.deb Choreo-${{ github.ref_name }}-Linux-x86_64.deb
mv choreo-*.x86_64.rpm Choreo-${{ github.ref_name }}-Linux-x86_64.rpm
- name: Rename Linux aarch64 artifacts
working-directory: pkg/Linux-aarch64
run: |
unzip -o Linux-aarch64.zip
rm Linux-aarch64.zip
mv Linux-aarch64-standalone.zip Choreo-${{ github.ref_name }}-Linux-aarch64-standalone.zip
mv choreo_*_amd64.AppImage Choreo-${{ github.ref_name }}-Linux-aarch64.AppImage
mv choreo_*_amd64.deb Choreo-${{ github.ref_name }}-Linux-aarch64.deb
mv choreo-*.x86_64.rpm Choreo-${{ github.ref_name }}-Linux-aarch64.rpm
- name: Display structure of renamed files
run: ls -R

Expand Down

0 comments on commit 49f7130

Please sign in to comment.