Skip to content

Commit

Permalink
refactor: rename matrix.os to runner.os in build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Feb 8, 2025
1 parent 7091a24 commit 8b08a69
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
matrix:
os: [ubuntu-22.04, windows-2022]

name: Build with ${{ matrix.os }}
name: Build with ${{ matrix.os == 'windows-2022' && 'Win-MSVC' || 'Ubuntu-Clang' }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ matrix.os }}-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-${{ runner.os }}-x64-${{ github.sha }}
path: |
bin/
Expand All @@ -79,14 +79,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-2022]
platform: [ubuntu-22.04, windows-2022]

name: Pack with ${{ matrix.os }}
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 }}-${{ matrix.os }}-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-${{ runner.os }}-x64-${{ github.sha }}
path: bin/

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

0 comments on commit 8b08a69

Please sign in to comment.