Skip to content

Commit dcd47fa

Browse files
committed
test linux build
1 parent 6b52e06 commit dcd47fa

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

.github/workflows/linux.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux Build
1+
name: Build Linux
22

33
on:
44
push:
@@ -7,32 +7,53 @@ on:
77

88
jobs:
99
build-linux:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
strategy:
12+
fail-fast: false
1213
matrix:
1314
arch: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
1415

1516
steps:
1617
- name: Checkout code
1718
uses: actions/checkout@v4
1819

19-
- name: Install Rust
20+
- name: Install Rust stable
2021
uses: dtolnay/rust-toolchain@stable
21-
22-
- name: Add target
22+
- name: Add Rust target
2323
run: rustup target add ${{ matrix.arch }}
2424

25-
- name: Install cross toolchain
25+
- name: Install dependencies
2626
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y \
29+
libgtk-3-dev \
30+
libwebkit2gtk-4.1-dev \
31+
libayatana-appindicator3-dev \
32+
librsvg2-dev \
33+
pkg-config \
34+
build-essential \
35+
curl \
36+
gstreamer1.0-plugins-base \
37+
gstreamer1.0-plugins-good \
38+
gstreamer1.0-plugins-bad \
39+
gstreamer1.0-plugins-ugly \
40+
gstreamer1.0-libav \
41+
gstreamer1.0-vaapi \
42+
patchelf
2743
if [ "${{ matrix.arch }}" = "aarch64-unknown-linux-gnu" ]; then
2844
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
2945
fi
3046
31-
- name: Build AppImage
47+
- name: Install frontend dependencies
48+
run: bun install
49+
50+
- name: Build Linux AppImage
3251
run: bun tauri build --target ${{ matrix.arch }}
3352

34-
- name: Upload artifacts
53+
- name: Upload AppImage and signature
3554
uses: actions/upload-artifact@v4
3655
with:
3756
name: hyperionbox-linux-${{ matrix.arch }}
38-
path: src-tauri/target/${{ matrix.arch }}/release/bundle/appimage/*.AppImage
57+
path: |
58+
src-tauri/target/${{ matrix.arch }}/release/bundle/appimage/*.AppImage
59+
src-tauri/target/${{ matrix.arch }}/release/bundle/appimage/*.sig

0 commit comments

Comments
 (0)