builds godot
matrix
| -rw-r--r-- | .github/actions/build-godot/action.yml | 5 | ||||
| -rw-r--r-- | .github/workflows/linux_builds.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/templates.yml | 39 |
3 files changed, 43 insertions, 21 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml index e5a44d4..faec0b2 100644 --- a/.github/actions/build-godot/action.yml +++ b/.github/actions/build-godot/action.yml @@ -12,6 +12,9 @@ inputs: flags: description: Flags to pass to the build script required: false + target: + description: Target (release, release_debug, debug) + required: true runs: using: "composite" @@ -53,7 +56,7 @@ runs: cd godot scons_flags=$flags [[ -z "${{ inputs.flags }}" ]] && scons_flags=${{ inputs.flags }} - scons -j$(($(nproc)+2)) p=${{ inputs.platform }} tools=$tools target=$target use_lto=yes udev=yes $scons_flags + scons -j$(($(nproc)+2)) p=${{ inputs.platform }} tools=$tools target=${{ inputs.target }} use_lto=yes udev=yes $scons_flags strip bin/* || true ls bin shell: bash diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 9c5dee9..a70e429 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -9,10 +9,13 @@ on: env: branch: 3.x tools: yes - target: release_debug jobs: - linux-editor: + build: + strategy: + matrix: + target: [release, release_debug] + name: Build editor runs-on: ubuntu-18.04 steps: @@ -20,18 +23,9 @@ jobs: uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: platform: x11 + target: ${{ matrix.target }} - name: Upload artifact uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main - - linux-headless: - name: Build headless - runs-on: ubuntu-18.04 - steps: - - name: Build headless - uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: - platform: server - - - name: Upload artifact - uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main + name: linux-editor-${{ matrix.target }} diff --git a/.github/workflows/templates.yml b/.github/workflows/templates.yml index 7a0ecf5..7acc22d 100644 --- a/.github/workflows/templates.yml +++ b/.github/workflows/templates.yml @@ -9,29 +9,40 @@ on: env: branch: 3.x tools: no - target: release flags: disable_3d=yes jobs: linux: name: Build linux templates runs-on: ubuntu-20.04 + strategy: + matrix: + target: [release, release_debug] + bits: [32, 64] steps: - name: Compilation uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: + target: ${{ matrix.target }} + flags: -bits=${{ matrix.bits }} ${{ env.flags }} platform: x11 - name: Upload artifact uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main windows: + strategy: + matrix: + target: [release, release_debug] + bits: [32, 64] name: Build windows templates runs-on: windows-latest steps: - name: Compilation uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: + target: ${{ matrix.target }} + flags: -bits=${{ matrix.bits }} ${{ env.flags }} platform: windows - name: Upload artifact @@ -40,6 +51,10 @@ jobs: android: name: Build android templates runs-on: ubuntu-20.04 + strategy: + matrix: + target: [release, release_debug] + bits: [32, 64] steps: - name: Set up Java 11 uses: actions/setup-java@v1 @@ -49,13 +64,15 @@ jobs: - name: Compilation (armv7) uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: - flags: android_arch=armv7 ${{ env.flags }} + target: ${{ matrix.target }} + flags: -bits=${{ matrix.bits }} android_arch=armv7 ${{ env.flags }} platform: android - name: Compilation (arm64v8) uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: - flags: android_arch=arm64v8 ${{ env.flags }} + target: ${{ matrix.target }} + flags: -bits=${{ matrix.bits }} android_arch=arm64v8 ${{ env.flags }} platform: android - name: Generate Godot templates @@ -68,18 +85,28 @@ jobs: uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main macos: + strategy: + matrix: + target: [release, release_debug] + bits: [32, 64] name: Build macos templates runs-on: macos-latest steps: - name: Compilation uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: + flags: -bits=${{ matrix.bits }} ${{ env.flags }} + target: ${{ matrix.target }} platform: macos - name: Upload artifact uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main javascript: + strategy: + matrix: + target: [release, release_debug] + bits: [32, 64] name: Build javascript templates runs-on: ubuntu-20.04 steps: @@ -95,6 +122,8 @@ jobs: - name: Compilation uses: bend-n/godot-2d-builds/.github/actions/build-godot@main with: + target: ${{ matrix.target }} + flags: -bits=${{ matrix.bits }} ${{ env.flags }} platform: javascript - name: Upload artifact @@ -108,10 +137,6 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@v2 - - name: Bundle - run: | - zip -r templates.tpz * - - name: Upload artifact uses: bend-n/godot-2d-builds/.github/actions/upload-artifact@main with: |