Skip to content

Commit

Permalink
Merge pull request #40 from xch-dev/arm-linux
Browse files Browse the repository at this point in the history
Add ARM linux build
  • Loading branch information
Rigidity authored Oct 19, 2024
2 parents 280c4a0 + 1b3dfa2 commit 193d161
Showing 1 changed file with 43 additions and 5 deletions.
48 changes: 43 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
- platform: 'ubuntu-22.04'
platform_name: Linux (x64)
build: 'pnpm tauri build'
- platform: 'linux-arm64'
platform_name: Linux (ARM)
build: 'pnpm tauri build --target aarch64-unknown-linux-gnu'
- platform: 'windows-latest'
platform_name: Windows (x64)
build: 'pnpm tauri build'
Expand All @@ -86,8 +89,12 @@ jobs:
if: matrix.platform_name == 'Windows (ARM)'
run: rustup target add aarch64-pc-windows-msvc

- name: Add aarch64-unknown-linux-gnu
if: matrix.platform_name == 'Linux (ARM)'
run: rustup target add aarch64-unknown-linux-gnu

- name: Ubuntu dependencies
if: matrix.platform == 'ubuntu-22.04'
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'linux-arm64'
run: sudo apt-get install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev

- name: Windows dependencies
Expand Down Expand Up @@ -127,7 +134,7 @@ jobs:
# We don't currently do signing on other platforms
- name: Build without secrets
if: ${{ !((matrix.platform_name == 'MacOS' && startsWith(github.event.ref, 'refs/tags/v')) || matrix.platform_name == 'iOS') }}
run: ${{ matrix.build_dev || matrix.build }}
run: ${{ matrix.build }}
env:
CI: true

Expand Down Expand Up @@ -159,21 +166,21 @@ jobs:
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (x64)'
with:
name: Sage.deb
name: Sage_x64.deb
path: target/release/bundle/deb/*.deb

- name: Upload DMG (Linux x64)
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (x64)'
with:
name: Sage.rpm
name: Sage_x64.rpm
path: target/release/bundle/rpm/*.rpm

- name: Upload AppImage (Linux x64)
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (x64)'
with:
name: Sage.AppImage
name: Sage_x64.AppImage
path: target/release/bundle/appimage/*.AppImage

- name: Release (Linux x64)
Expand All @@ -185,6 +192,37 @@ jobs:
target/release/bundle/rpm/*.rpm
target/release/bundle/appimage/*.AppImage
# Linux ARM
- name: Upload DEB (Linux ARM)
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (ARM)'
with:
name: Sage_ARM64.deb
path: target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb

- name: Upload DMG (Linux ARM)
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (ARM)'
with:
name: Sage_ARM64.rpm
path: target/aarch64-unknown-linux-gnu/release/bundle/rpm/*.rpm

- name: Upload AppImage (Linux ARM)
uses: actions/upload-artifact@v4
if: matrix.platform_name == 'Linux (ARM)'
with:
name: Sage_ARM64.AppImage
path: target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage

- name: Release (Linux ARM)
uses: softprops/action-gh-release@v2
if: matrix.platform_name == 'Linux (ARM)' && startsWith(github.event.ref, 'refs/tags/v')
with:
files: |
target/aarch64-unknown-linux-gnu/release/bundle/deb/*.deb
target/aarch64-unknown-linux-gnu/release/bundle/rpm/*.rpm
target/aarch64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
# Windows x64
- name: Upload MSI (Windows x64)
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 193d161

Please sign in to comment.