Skip to content

Commit c4c3576

Browse files
committed
ci: setup the executable with node 18
1 parent 4aa1b06 commit c4c3576

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/CI.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ jobs:
6464
run: |
6565
pnpm run test
6666
67+
# Create self-contained executable that bundles Nodejs
68+
- name: Create Executable
69+
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
70+
run: |
71+
pnpm run pack.exe
72+
73+
- name: Upload Artifacts
74+
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
75+
uses: actions/upload-artifact@v3
76+
with:
77+
path: |
78+
./exe
79+
./dist
80+
retention-days: 1
81+
6782
- name: Setup Node 12
6883
uses: actions/setup-node@v3
6984
with:
@@ -80,21 +95,6 @@ jobs:
8095
run: |
8196
node ./dist/node16/setup-cpp.js --help
8297
83-
# Create self-contained executable that bundles Nodejs
84-
- name: Create Executable
85-
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
86-
run: |
87-
pnpm run pack.exe
88-
89-
- name: Upload Artifacts
90-
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
91-
uses: actions/upload-artifact@v3
92-
with:
93-
path: |
94-
./exe
95-
./dist
96-
retention-days: 1
97-
9898
Release:
9999
needs: Test
100100
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)