diff --git a/.github/workflows/release-packaging.yml b/.github/workflows/release-packaging.yml index 1240a12..5356ea9 100644 --- a/.github/workflows/release-packaging.yml +++ b/.github/workflows/release-packaging.yml @@ -36,10 +36,20 @@ jobs: [ "${{ env.game_version }}" == "${{ env.BRANCH_NAME }}" ] || exit 2 build: - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} timeout-minutes: 30 needs: [check] + strategy: + matrix: + include: + - os: ubuntu-22.04 + command: export-linux + - os: windows-2022 + command: export-windows + - os: macos-12 + command: export-mac + steps: - uses: actions/checkout@v4 with: @@ -56,12 +66,17 @@ jobs: path: | ~/.mkflower/bin ~/.local/share/godot/export_templates/${{ env.godot_version }}.stable - key: ${{ env.godot_version }} + key: ${{ env.godot_version }}-${{ matrix.os }} - uses: ./.github/actions/setup-x11-drivers + # Retry multiple times, always in CI, godot freeze when reimporting assets - name: Export - run: just export + uses: nick-fields/retry@v2 + with: + timeout_minutes: 10 + max_attempts: 3 + command: just ${{ matrix.command }} - name: Upload artifact uses: actions/upload-artifact@v4 @@ -90,7 +105,7 @@ jobs: path: | ~/.mkflower/bin ~/.local/share/godot/export_templates/${{ env.godot_version }}.stable - key: ${{ env.godot_version }} + key: ${{ env.godot_version }}-${{ matrix.os }} - uses: ./.github/actions/setup-x11-drivers