File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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'
You can’t perform that action at this time.
0 commit comments