Skip to content

Commit

Permalink
ci: fixed pack
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Feb 8, 2025
1 parent b3e2a58 commit 1ce1360
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,15 @@ jobs:
matrix:
platform: [ubuntu-22.04, windows-2022]

env:
platformStr: ${{ matrix.platform == 'windows-2022' && 'Windows' || 'Linux' }}

name: Package ${{ matrix.platform == 'windows-2022' && 'windows' || 'linux' }} platform dependencies
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ runner.os }}-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-${{ env.platformStr }}-x64-${{ github.sha }}
path: bin/

- name: Download depends
Expand All @@ -111,7 +114,7 @@ jobs:
cp -r bin/* full/plugins/
cp -a deps/node_modules/. full/plugins/js_engine/node_modules/
if [ "${{ runner.os }}" == "Windows" ]; then
if [ "${{ env.platformStr }}" == "Windows" ]; then
cp deps/libnode.dll full/
cp deps/node.exe full/
else
Expand All @@ -121,7 +124,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ runner.os }}-full-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-${{ env.platformStr }}-full-x64-${{ github.sha }}
include-hidden-files: true
path: |
full/

0 comments on commit 1ce1360

Please sign in to comment.