Skip to content

Commit dca38cd

Browse files
committed
ci: arm builds for macOS and linux
1 parent 630b3e6 commit dca38cd

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/build.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
platform: [macos-latest, ubuntu-22.04, windows-latest]
16+
include:
17+
- platform: 'macos-latest' # for Arm based macs
18+
args: '--target aarch64-apple-darwin'
19+
- platform: 'macos-latest' # for Intel based macs.
20+
args: '--target x86_64-apple-darwin'
21+
- platform: 'ubuntu-22.04'
22+
args: ''
23+
- platform: 'ubuntu-22.04-arm' # for Arm based linux.
24+
args: ''
25+
- platform: 'windows-latest'
26+
args: ''
1727
runs-on: ${{ matrix.platform }}
1828

1929
steps:
@@ -27,6 +37,13 @@ jobs:
2737
sudo apt-get update
2838
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev \
2939
libjavascriptcoregtk-4.1-dev libsoup-3.0-dev
40+
41+
- name: Install dependencies (ubuntu-arm only)
42+
if: matrix.platform == 'ubuntu-22.04-arm'
43+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev xdg-utils
3047
3148
- name: Rust setup
3249
uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
platform: [macos-latest, ubuntu-22.04, windows-latest]
17+
include:
18+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
19+
args: '--target aarch64-apple-darwin'
20+
- platform: 'macos-latest' # for Intel based macs.
21+
args: '--target x86_64-apple-darwin'
22+
- platform: 'ubuntu-22.04'
23+
args: ''
24+
- platform: 'ubuntu-22.04-arm' # for Arm based linux.
25+
args: ''
26+
- platform: 'windows-latest' # for Arm based windows.
27+
args: '--target x86_64-pc-windows-msvc'
1828
runs-on: ${{ matrix.platform }}
1929

2030
steps:
@@ -27,6 +37,13 @@ jobs:
2737
run: |
2838
sudo apt-get update
2939
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
40+
41+
- name: Install dependencies (ubuntu-arm only)
42+
if: matrix.platform == 'ubuntu-22.04-arm'
43+
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libgtk-3-dev xdg-utils
3047
3148
- name: Rust setup
3249
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)