Skip to content

Commit

Permalink
ci: parallelize builds
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Jan 3, 2024
1 parent 591c00d commit 07c4c2d
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 07c4c2d

Please sign in to comment.