Skip to content

Commit 25525d8

Browse files
committed
Update workflow matrix
1 parent 4bb302b commit 25525d8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/bundle.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ jobs:
1414
build:
1515
strategy:
1616
matrix:
17-
os: [windows-2022, ubuntu-22.04]
17+
platform:
18+
- {name: windows, os: windows-2022}
19+
- {name: linux, os: ubuntu-22.04}
1820
arch: [x86_64, aarch64]
19-
runs-on: ${{ matrix.os }}
21+
runs-on: ${{ matrix.platform.os }}
2022
steps:
2123
- uses: actions/checkout@v3
2224
- uses: CompeyDev/setup-rokit@v0.1.2
@@ -29,15 +31,15 @@ jobs:
2931
run: darklua process src/Repackage.luau bundle/Bundled.luau -c bundle/darklua.config
3032

3133
- name: Build (Windows)
32-
if: matrix.os == 'windows-2022'
34+
if: matrix.platform.name == 'windows'
3335
run: lune build bundle/Bundled.luau -o bundle/Repackage-${{ matrix.arch }}.exe -t windows-${{ matrix.arch }}
3436

3537
- name: Build (Linux)
36-
if: matrix.os == 'ubuntu-22.04'
38+
if: matrix.platform.name == 'linux'
3739
run: lune build bundle/Bundled.luau -o bundle/Repackage-${{ matrix.arch }} -t linux-${{ matrix.arch }}
3840

3941
- name: Upload Bundle Artifact
4042
uses: actions/upload-artifact@v4
4143
with:
42-
name: Repackage-${{ matrix.os }}-${{ matrix.arch }}
44+
name: Repackage-${{ matrix.platform.name }}-${{ matrix.arch }}
4345
path: bundle/Repackage*

0 commit comments

Comments
 (0)