Skip to content

Commit 674af19

Browse files
committed
feat: prepare artifact build
1 parent 3d50794 commit 674af19

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/artifacts.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ jobs:
2828
- uses: actions/checkout@v1
2929
- name: Prepare
3030
run: |
31-
apt-get update
32-
apt-get install -y cmake
31+
if [[ "${{ matrix.pack.tag}}" = "alpine" ]]; then
32+
apk add --no-cache cmake
33+
else
34+
apt-get update
35+
apt-get install -y cmake
36+
fi
3337
- name: Install
3438
run: npm ci
3539
- name: Build
@@ -41,45 +45,41 @@ jobs:
4145
path: prebuilds
4246

4347
macos-build:
44-
strategy:
45-
matrix:
46-
arch:
47-
- amd64
48-
- arm64
4948
runs-on: macos-latest
5049
permissions:
5150
contents: read
5251
steps:
5352
- uses: actions/checkout@v1
5453
- name: Install
5554
run: npm ci
56-
- name: Build
57-
run: NODE_ARCH=${{ matrix.arch }} npm run prebuild
55+
- name: Build (amd64)
56+
run: npm run prebuild
57+
- name: Build (arm64)
58+
run: NODE_ARCH=arm64 npm run prebuild
5859
- name: Upload artifact
5960
uses: actions/upload-artifact@v4
6061
with:
61-
name: pack-macos-${{ matrix.arch }}
62+
name: pack-macos
6263
path: prebuilds
6364

6465
windows-build:
65-
strategy:
66-
matrix:
67-
arch:
68-
- x64
69-
- x86
7066
runs-on: windows-latest
7167
permissions:
7268
contents: read
7369
steps:
7470
- uses: actions/checkout@v1
7571
- name: Install
7672
run: npm ci
77-
- name: Build
78-
run: NODE_ARCH=${{ matrix.arch }} npm run prebuild
73+
- name: Build (x64)
74+
run: npm run prebuild
75+
- name: Build (x86)
76+
run: |
77+
$Env:NODE_ARCH = "x86"
78+
npm run prebuild
7979
- name: Upload artifact
8080
uses: actions/upload-artifact@v4
8181
with:
82-
name: pack-windows-${{ matrix.arch }}
82+
name: pack-windows
8383
path: prebuilds
8484

8585
publish:

0 commit comments

Comments
 (0)