Skip to content

Commit

Permalink
fix(ci): adjust the node.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
con-cis committed Jul 21, 2024
1 parent 06f1440 commit 9bedd6b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,53 @@ jobs:

strategy:
fail-fast: true
max-parallel: 2
max-parallel: 6
matrix:
node-version: [20.x]
node-version: ['20x', 'latest']
experimental: [false]
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --force

- name: Build Release Files
run: npm run build --if-present

- name: Electronegativity
uses: doyensec/[email protected]

- name: Build for Windows
if: startsWith(matrix.os, 'windows')
run: npm run build:win

- name: Build for macOS
if: startsWith(matrix.os, 'macos')
run: npm run build:mac

- name: Build for Linux
if: startsWith(matrix.os, 'ubuntu')
run: npm run build:linux

- name: List Release Files
run: ls -la release/

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: release_on_${{ matrix.os }}_node_${{ matrix.node-version }}
path: release/
retention-days: 5
- name: Download a single artifact
if-no-files-found: warn

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: release_on_${{ matrix.os }}_node_${{ matrix.node-version }}
Expand Down

0 comments on commit 9bedd6b

Please sign in to comment.