You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simplify: remove ARM64 target from Linux build workflow
- Drop aarch64 architecture support
- Remove matrix strategy and cross-compilation setup
- Only build x86_64 AppImage and .deb files
- Remove .rpm package generation
- Significantly simplifies the build process
Copy file name to clipboardExpand all lines: .github/workflows/build-linux.yml
+14-83Lines changed: 14 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -7,79 +7,27 @@ on:
7
7
8
8
jobs:
9
9
build:
10
-
name: Build Linux ${{ matrix.arch }}
10
+
name: Build Linux x86_64
11
11
runs-on: ubuntu-latest
12
12
13
-
strategy:
14
-
matrix:
15
-
include:
16
-
- arch: x86_64
17
-
target: x86_64-unknown-linux-gnu
18
-
- arch: aarch64
19
-
target: aarch64-unknown-linux-gnu
20
-
21
13
steps:
22
14
- uses: actions/checkout@v4
23
15
24
16
- name: Install system dependencies
25
17
run: |
26
18
sudo apt-get update
27
-
28
-
# Common dependencies for both architectures
29
19
sudo apt-get install -y \
30
-
rpm \
31
-
pkg-config
32
-
33
-
if [ "${{ matrix.arch }}" = "x86_64" ]; then
34
-
# x86_64 native dependencies
35
-
sudo apt-get install -y \
36
-
libwebkit2gtk-4.1-dev \
37
-
libgtk-3-dev \
38
-
libssl-dev \
39
-
libayatana-appindicator3-dev \
40
-
librsvg2-dev
41
-
else
42
-
# ARM64 cross-compilation setup
43
-
# Add ARM64 architecture
44
-
sudo dpkg --add-architecture arm64
45
-
46
-
# Restrict main sources to amd64 only to prevent 404 errors
47
-
sudo sed -i 's/^deb /deb [arch=amd64] /g' /etc/apt/sources.list
48
-
49
-
# Add ARM64 repositories
50
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -cs) main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/arm64.list
51
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -cs)-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64.list
52
-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -cs)-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/arm64.list
53
-
54
-
# Update with new architecture
55
-
sudo apt-get update
56
-
57
-
# Install cross-compilation tools
58
-
sudo apt-get install -y \
59
-
gcc-aarch64-linux-gnu \
60
-
g++-aarch64-linux-gnu \
61
-
libc6-dev-arm64-cross
62
-
63
-
# Install ARM64 libraries
64
-
sudo apt-get install -y \
65
-
libwebkit2gtk-4.1-dev:arm64 \
66
-
libgtk-3-dev:arm64 \
67
-
libssl-dev:arm64 \
68
-
libayatana-appindicator3-dev:arm64 \
69
-
librsvg2-dev:arm64 \
70
-
libglib2.0-dev:arm64 \
71
-
libcairo2-dev:arm64 \
72
-
libpango1.0-dev:arm64 \
73
-
libatk1.0-dev:arm64 \
74
-
libgdk-pixbuf-2.0-dev:arm64 \
75
-
libsoup-3.0-dev:arm64 \
76
-
libjavascriptcoregtk-4.1-dev:arm64
77
-
fi
20
+
pkg-config \
21
+
libwebkit2gtk-4.1-dev \
22
+
libgtk-3-dev \
23
+
libssl-dev \
24
+
libayatana-appindicator3-dev \
25
+
librsvg2-dev
78
26
79
27
- name: Setup Rust
80
28
uses: dtolnay/rust-toolchain@stable
81
29
with:
82
-
targets: ${{ matrix.target }}
30
+
targets: x86_64-unknown-linux-gnu
83
31
84
32
- name: Setup Rust cache
85
33
uses: Swatinem/rust-cache@v2
@@ -93,33 +41,16 @@ jobs:
93
41
run: bun install
94
42
95
43
- name: Build Tauri app
96
-
run: bun run tauri build --target ${{ matrix.target }}
97
-
env:
98
-
# Cross-compilation environment variables for ARM64
0 commit comments