Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Dec 28, 2023
1 parent 4eea2bd commit 116757e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,26 @@ jobs:
matrix:
target: [debug, release]
include:
- identifier: linux
name: 🐧 Linux
- name: 🐧 Linux
runner: ubuntu-20.04
platform: linux
arch: x86_64

- identifier: windows
name: 🪟 Windows
- name: 🪟 Windows
runner: ubuntu-20.04
platform: windows
arch: x86_64

- identifier: macos
name: 🍎 macOS
- name: 🍎 macOS
runner: macos-latest
platform: macos

- identifier: android-arm64
name: 🤖 Android Arm64
- name: 🤖 Android Arm64
runner: ubuntu-20.04
platform: android
arch: arm64

- identifier: android-arm32
name: 🤖 Android Arm32
- name: 🤖 Android Arm32
runner: ubuntu-20.04
platform: android
arch: arm32
Expand All @@ -50,11 +45,11 @@ jobs:
submodules: recursive

- name: Setup Windows Dependencies
if: startsWith(matrix.identifier, 'windows')
if: matrix.platform == 'windows'
uses: ./.github/actions/windows-deps

- name: Setup Android Dependencies
if: startsWith(matrix.identifier, 'android')
if: matrix.platform == 'android'
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
Expand All @@ -66,7 +61,7 @@ jobs:
- name: Setup Build Cache
uses: ./.github/actions/build-cache
with:
cache-name: ${{ matrix.identifier }}-${{ matrix.target }}
cache-name: ${{ matrix.platform }}-${{ matrix.target }}
continue-on-error: true

- name: Build Terrain3D
Expand All @@ -79,7 +74,7 @@ jobs:
scons target=$TARGET platform='${{ matrix.platform }}' arch=$ARCH debug_symbols=no -j2
- name: Strip Libraries (Windows/Linux)
if: startsWith(matrix.identifier, 'windows') || startsWith(matrix.identifier, 'linux')
if: matrix.platform == 'windows' || matrix.platform == 'linux'
shell: sh
run: |
ls -l project/addons/terrain_3d/bin/
Expand Down

0 comments on commit 116757e

Please sign in to comment.