Skip to content

Commit 475158a

Browse files
committed
feat: close ChatGPTNextWeb#2194 add macos arm support
1 parent 829df56 commit 475158a

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/app.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,21 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
platform: [macos-latest, ubuntu-20.04, windows-latest]
42+
config:
43+
- os: ubuntu-latest
44+
arch: x86_64
45+
rust_target: x86_64-unknown-linux-gnu
46+
- os: macos-latest
47+
arch: x86_64
48+
rust_target: x86_64-apple-darwin
49+
- os: macos-latest
50+
arch: aarch64
51+
rust_target: aarch64-apple-darwin
52+
- os: windows-latest
53+
arch: x86_64
54+
rust_target: x86_64-pc-windows-msvc
4355

44-
runs-on: ${{ matrix.platform }}
56+
runs-on: ${{ matrix.config.os }}
4557
steps:
4658
- uses: actions/checkout@v3
4759
- name: setup node
@@ -50,8 +62,13 @@ jobs:
5062
node-version: 16
5163
- name: install Rust stable
5264
uses: dtolnay/rust-toolchain@stable
65+
with:
66+
targets: ${{ matrix.config.rust_target }}
67+
- uses: Swatinem/rust-cache@v2
68+
with:
69+
key: ${{ matrix.config.rust_target }}
5370
- name: install dependencies (ubuntu only)
54-
if: matrix.platform == 'ubuntu-20.04'
71+
if: matrix.config.os == 'ubuntu-20.04'
5572
run: |
5673
sudo apt-get update
5774
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf

0 commit comments

Comments
 (0)