🪟 Windows Builds #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🪟 Windows Builds | |
on: [ workflow_call, workflow_dispatch ] | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- identifier: windows-debug | |
name: Windows Debug | |
target: template_debug | |
platform: windows | |
arch: x86_64 | |
- identifier: windows-release | |
name: Windows Release | |
target: template_release | |
platform: windows | |
arch: x86_64 | |
steps: | |
- name: Checkout Terrain3D | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Windows Dependencies | |
uses: ./.github/actions/windows-deps | |
- name: Setup Base Dependencies | |
uses: ./.github/actions/base-deps | |
- name: Setup Build Cache | |
uses: ./.github/actions/build-cache | |
with: | |
cache-name: ${{ matrix.identifier }} | |
continue-on-error: true | |
- name: Build Terrain3D | |
shell: sh | |
env: | |
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/" | |
SCONS_CACHE_LIMIT: 7168 | |
run: | | |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2 | |
- name: Prepare Files | |
shell: sh | |
run: | | |
ls -l project/addons/terrain_3d/bin/ | |
strip project/addons/terrain_3d/bin/libterrain.* | |
ls -l project/addons/terrain_3d/bin/ | |
cp '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' ${{ github.workspace }}/project/addons/terrain_3d/ | |
- name: Upload Package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: | | |
${{ github.workspace }}/project/ |