mirror of https://github.com/aminya/setup-cpp
ci: setup the executable with node 18
This commit is contained in:
parent
4aa1b0647c
commit
c4c3576054
|
@ -64,6 +64,21 @@ jobs:
|
|||
run: |
|
||||
pnpm run test
|
||||
|
||||
# Create self-contained executable that bundles Nodejs
|
||||
- name: Create Executable
|
||||
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
|
||||
run: |
|
||||
pnpm run pack.exe
|
||||
|
||||
- name: Upload Artifacts
|
||||
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: |
|
||||
./exe
|
||||
./dist
|
||||
retention-days: 1
|
||||
|
||||
- name: Setup Node 12
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
@ -80,21 +95,6 @@ jobs:
|
|||
run: |
|
||||
node ./dist/node16/setup-cpp.js --help
|
||||
|
||||
# Create self-contained executable that bundles Nodejs
|
||||
- name: Create Executable
|
||||
if: "${{ contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}"
|
||||
run: |
|
||||
pnpm run pack.exe
|
||||
|
||||
- name: Upload Artifacts
|
||||
if: ${{ (startsWith(github.ref, 'refs/tags/')) && contains(matrix.os, 'windows-2022') || contains(matrix.os, 'ubuntu-22.04') || contains(matrix.os, 'macos-12') }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: |
|
||||
./exe
|
||||
./dist
|
||||
retention-days: 1
|
||||
|
||||
Release:
|
||||
needs: Test
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
|
Loading…
Reference in New Issue