Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Nov 20, 2023
1 parent ccc4c38 commit aa20d33
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
33 changes: 33 additions & 0 deletions .github/actions/run-scons/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Terrain3D
description: Uploads built package
runs:
using: "composite"
steps:
- name: Run Scons, 1st attempt
id: scons1
continue-on-error: true
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
shell: sh
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2
- name: Run Scons, 2nd attempt
id: scons2
if: failure()
continue-on-error: true
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
shell: sh
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2
- name: Run Scons, 3rd attempt
id: scons3
if: failure()
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
shell: sh
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,7 @@ jobs:
continue-on-error: true

- name: Build Terrain3D
uses: nick-fields/retry@v2
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
with:
max_attempts: 3
timeout_minutes: 40
command: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2
uses: ./.github/actions/run-scons

- name: Strip Libraries (Windows/Linux)
if: startsWith(matrix.identifier, 'windows-') || startsWith(matrix.identifier, 'linux-')
Expand Down

0 comments on commit aa20d33

Please sign in to comment.