Skip to content

Commit 3881786

Browse files
committed
ci: fix linux image build with a known working method
1 parent eb5aa55 commit 3881786

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ jobs:
3737
matrix:
3838
include:
3939
- platform: macos-latest
40-
args: --target aarch64-apple-darwin
40+
target: aarch64-apple-darwin
41+
bundles: dmg
4142
- platform: ubuntu-latest
42-
args: ''
43+
target: x86_64-unknown-linux-gnu
44+
bundles: appimage,deb
4345
- platform: ubuntu-24.04-arm
44-
args: --target aarch64-unknown-linux-gnu
46+
target: aarch64-unknown-linux-gnu
47+
bundles: appimage,deb
4548
- platform: windows-latest
46-
args: ''
49+
target: x86_64-pc-windows-msvc
50+
bundles: msi,nsis
4751

4852
runs-on: ${{ matrix.platform }}
4953

@@ -74,16 +78,18 @@ jobs:
7478
- name: Install frontend dependencies
7579
run: npm ci
7680

81+
- name: Enable pnpm
82+
run: corepack enable
83+
7784
- name: Download liblbug
7885
run: bash scripts/download-liblbug.sh
7986

8087
- name: Build Tauri app
81-
uses: tauri-apps/tauri-action@v0
88+
run: pnpm tauri build --target ${{ matrix.target }} --bundles ${{ matrix.bundles }} --verbose
8289
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
# Needed for linuxdeploy AppImage bundling on CI runners
91+
APPIMAGE_EXTRACT_AND_RUN: "1"
8492
NO_STRIP: "true" # https://github.com/tauri-apps/tauri/issues/14796
85-
with:
86-
args: ${{ matrix.args }}
8793

8894
- name: Upload artifacts
8995
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)