Elffuss BraidHub

kikocis/continue public

main · 1.4 KiBRawPermalink
1name: PR Build And Upload VSIX
2
3# Builds and uploads VSIX artifacts for the `oneper` script across Linux, Windows, and macOS ARM platforms
4on:
5 pull_request:
6 branches:
7 - main
8
9jobs:
10 build-and-upload-vsix:
11 runs-on: ${{ matrix.runner }}
12 timeout-minutes: 10
13 strategy:
14 matrix:
15 include:
16 - platform: linux
17 arch: x64
18 runner: ubuntu-latest
19 - platform: win32
20 arch: x64
21 runner: windows-latest
22 - platform: darwin
23 arch: arm64
24 runner: macos-latest
25
26 steps:
27 - uses: actions/checkout@v5
28 with:
29 fetch-depth: 0
30
31 - name: Build VS Code extension
32 uses: ./.github/actions/build-vscode-extension
33 with:
34 platform: ${{ matrix.platform }}
35 arch: ${{ matrix.arch }}
36 npm_config_arch: ${{ matrix.arch }}
37 pre-release: false
38 commit-sha: ${{ github.sha }}
39 github-token: ${{ secrets.GITHUB_TOKEN }}
40
41 - name: Upload build artifact
42 uses: actions/upload-artifact@v4
43 with:
44 name: vscode-extension-build-${{ matrix.platform }}-${{ matrix.arch }}
45 path: extensions/vscode/build
46
47 - name: Upload .vsix artifact
48 uses: actions/upload-artifact@v4
49 with:
50 name: ${{ matrix.platform }}-${{ matrix.arch }}-vsix
51 path: "extensions/vscode/*.vsix"