Skip to content

Commit efcf154

Browse files
committed
update to v4 of github artifact
1 parent ec9a18a commit efcf154

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ jobs:
1515
include:
1616
- os: ubuntu-latest
1717
platform: linux
18+
arch: x64
1819
- os: windows-latest
1920
platform: win32
21+
arch: x64
2022
- os: macos-latest
2123
platform: darwin
24+
arch: x64
25+
- os: macos-latest
26+
platform: darwin
27+
arch: arm64
2228

2329
runs-on: ${{ matrix.os }}
2430

@@ -36,8 +42,15 @@ jobs:
3642
- name: Build native modules
3743
run: node ./scripts/prepare-native-modules.js
3844

45+
- name: Build native modules for Apple Silicon
46+
if: matrix.platform == 'darwin' && matrix.arch == 'arm64'
47+
run: |
48+
ELECTRON_ARCH=arm64 node ./scripts/prepare-native-modules.js
49+
env:
50+
TARGET_ARCH: arm64
51+
3952
- name: Upload build artifacts
40-
uses: actions/upload-artifact@v3
53+
uses: actions/upload-artifact@v4
4154
with:
4255
name: native-modules-${{ matrix.platform }}
4356
path: build/${{ matrix.platform }}-*
@@ -58,7 +71,7 @@ jobs:
5871
run: npm ci
5972

6073
- name: Download all artifacts
61-
uses: actions/download-artifact@v3
74+
uses: actions/download-artifact@v4
6275
with:
6376
path: build
6477

@@ -78,7 +91,7 @@ jobs:
7891
run: npx vsce package
7992

8093
- name: Upload VSIX
81-
uses: actions/upload-artifact@v3
94+
uses: actions/upload-artifact@v4
8295
with:
8396
name: vibe-coder-extension
8497
path: "*.vsix"

0 commit comments

Comments
 (0)