diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af825f12..076c0033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' @@ -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 @@ -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 @@ -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) @@ -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