From 9206622395b4720adbfeb7c4a789d180fc16d8b2 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 24 Jun 2024 19:00:51 +0100 Subject: [PATCH] Matrix build --- .github/workflows/main.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5faac615..19656274 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,14 @@ concurrency: jobs: build: + strategy: + matrix: + config: + - target: Web + artifact: web + - target: macOS + artifact: mac.zip + runs-on: ubuntu-latest steps: @@ -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