Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Aug 28, 2023
1 parent d2c5095 commit 2595875
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/actions/android-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ runs:
using: "composite"
steps:
- name: (Android) Set up Java 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
submodules: recursive

- name: (Android) Set up Android dependencies
if: ${{ startsWith(matrix.identifier, 'android-') }}
uses: ./.github/actions/android-deps

- name: Setup python & scons
Expand All @@ -45,12 +44,10 @@ jobs:
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/terrain_3d/bin/
- name: Prepare artifact
shell: sh
run: |
strip project/addons/terrain_3d/bin/libterrain.*
ls -l project/addons/terrain_3d/bin/
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' ${{ github.workspace }}/project/addons/terrain_3d/
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
target: template_release
platform: windows
arch: x86_64
- name: macOS Debug
- identifier: macos-debug
name: macOS Debug
target: template_debug
platform: macos
- name: macOS Release
- identifier: macos-release
name: macOS Release
target: template_release
platform: macos
- identifier: android-debug
Expand Down Expand Up @@ -83,16 +85,13 @@ jobs:
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/terrain_3d/bin/
- name: Strip libraries
if: ${{ startsWith(matrix.identifier, 'windows-') }} || ${{ startsWith(matrix.identifier, 'linux-') }}
shell: sh
run: |
if [ -x "project/addons/terrain_3d/bin/libterrain.macos.debug.framework" ]; then
strip project/addons/terrain_3d/bin/libterrain.macos.{debug,release}.framework/*
else
strip project/addons/terrain_3d/bin/libterrain.*
fi
ls -l project/addons/terrain_3d/bin/
strip project/addons/terrain_3d/bin/libterrain.*
ls -l project/addons/terrain_3d/bin/
- name: Prepare artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/terrain_3d/bin/
- name: Prepare artifact
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 --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' ${{ github.workspace }}/project/addons/terrain_3d/
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ jobs:
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/terrain_3d/bin/
- name: Prepare artifact
shell: sh
run: |
strip project/addons/terrain_3d/bin/libterrain.macos.{debug,release}.framework/*
ls -l project/addons/terrain_3d/bin/
ls -l project/addons/terrain_3d/bin/*/
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' ${{ github.workspace }}/project/addons/terrain_3d/
- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🪟 Build (Windows)
name: 🪟 Windows Builds
on: workflow_dispatch

env:
Expand Down Expand Up @@ -49,11 +49,11 @@ jobs:
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/terrain_3d/bin/
- name: Prepare artifact
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 --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' ${{ github.workspace }}/project/addons/terrain_3d/
Expand Down

0 comments on commit 2595875

Please sign in to comment.