Skip to content

Commit 0ebdf47

Browse files
committed
update: seperate macos to arm64 and x64
1 parent 4c1d977 commit 0ebdf47

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/build-desktop.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
os: [windows-latest, macos-latest, ubuntu-latest]
12+
include:
13+
- os: windows-latest
14+
name: windows
15+
- os: ubuntu-latest
16+
name: linux
17+
- os: macos-latest
18+
name: macos-arm64
19+
arch: arm64
20+
- os: macos-13
21+
name: macos-x64
22+
arch: x64
1323
steps:
1424
- name: Checkout
1525
uses: actions/checkout@v4
@@ -37,18 +47,7 @@ jobs:
3747
if [ "${{ runner.os }}" = "Windows" ]; then
3848
npm run dist:win
3949
elif [ "${{ runner.os }}" = "macOS" ]; then
40-
npm run dist:mac -- --arm64
41-
npm run dist:mac -- --x64
42-
mkdir -p dist/renamed
43-
shopt -s nullglob
44-
for file in dist/*.dmg; do
45-
if [[ "$file" == *arm64* ]]; then
46-
cp "$file" "dist/renamed/Agently Helper-mac-arm64.dmg"
47-
elif [[ "$file" == *x64* || "$file" == *x86_64* ]]; then
48-
cp "$file" "dist/renamed/Agently Helper-mac-x64.dmg"
49-
fi
50-
done
51-
shopt -u nullglob
50+
npm run dist:mac -- --${{ matrix.arch }}
5251
else
5352
npm run dist:linux
5453
fi
@@ -69,8 +68,8 @@ jobs:
6968
if: runner.os == 'macOS'
7069
uses: actions/upload-artifact@v4
7170
with:
72-
name: agently-helper-macos-installer
73-
path: tools/agently_helper/dist/renamed/*.dmg
71+
name: agently-helper-${{ matrix.name }}
72+
path: tools/agently_helper/dist/**/*.dmg
7473

7574
- name: Upload Linux installer
7675
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)