Skip to content

Commit

Permalink
Matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Jun 24, 2024
1 parent 2079f53 commit 9206622
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ concurrency:

jobs:
build:
strategy:
matrix:
config:
- target: Web
artifact: web
- target: macOS
artifact: mac.zip

runs-on: ubuntu-latest

steps:
Expand All @@ -26,22 +34,12 @@ jobs:
mkdir -p ~/.local/share/godot/export_templates/4.2.2.stable
mv build/export_templates/*.zip ~/.local/share/godot/export_templates/4.2.2.stable/
- name: Export macOS build
run: |
"$RUNNER_TEMP/godot" --headless --export-release "macOS"
- uses: actions/upload-artifact@v4
with:
name: Merc (macOS).zip
path: ./build/mac.zip
retention-days: 1

- name: Export web build
- name: Export build
run: |
"$RUNNER_TEMP/godot" --headless --export-release "Web"
"$RUNNER_TEMP/godot" --headless --export-release "${{ matrix.config.target }}"
- uses: actions/upload-artifact@v4
with:
name: Merc (web).zip
path: ./build/web
name: Merc ${{ matrix.config.target }}.zip
path: ./build/${{ matrix.config.artifact }}
retention-days: 1

0 comments on commit 9206622

Please sign in to comment.