Skip to content

Commit

Permalink
Update GitHub Action workflow
Browse files Browse the repository at this point in the history
Updated the GitHub Action workflow to align with recent project changes.
  • Loading branch information
alessandrofama committed Dec 19, 2024
1 parent 6231125 commit a238bc9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Build

on:
push:
branches:
- main
- wwise_v2023.1
- wwise_v2024.1
pull_request:
branches:
- main
Expand All @@ -30,7 +26,6 @@ jobs:
os: "windows-2022"
sdk-platform: windows
scons-platform: windows
release-flags: use_static_cpp=true
artifact-name: windows

- name: macOS
Expand Down Expand Up @@ -120,7 +115,7 @@ jobs:
if: runner.os == 'Linux' && matrix.sdk-platform == 'linux'
run: |
sudo apt-get install build-essential pkg-config libx11-dev \
yasm zip unzip p7zip-full p7zip-rar
yasm zip unzip p7zip-full p7zip-rar gcc-10 g++-10 libtbb-dev
- name: Download Wwise SDK (Base)
uses: suisei-cn/[email protected]
Expand Down Expand Up @@ -204,7 +199,7 @@ jobs:
7z x wwise_sdk_2024.1.0_android.zip
cd ../../../../
- name: Compile Editor library
- name: Compile editor library
if: matrix.sdk-platform != 'android' && matrix.sdk-platform != 'ios'
shell: bash
env:
Expand All @@ -213,29 +208,29 @@ jobs:
run: |
cd addons/Wwise/native
mkdir -p godot-cpp/bin
scons platform=${{ matrix.scons-platform }} target=editor debug_symbols=yes wwise_sdk=wwise_sdk -j6 ${{ matrix.debug-flags }}
scons platform=${{ matrix.scons-platform }} target=editor wwise_config=profile use_static_cpp=yes wwise_sdk=wwise_sdk
cd ../../../
- name: Compile Debug library
- name: Compile template_debug library
if: matrix.sdk-platform != 'android'
shell: bash
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
SCONS_CACHE_LIMIT: 7168
run: |
cd addons/Wwise/native
scons platform=${{ matrix.scons-platform }} target=template_debug dev_build=yes debug_symbols=yes asserts=yes wwise_sdk=wwise_sdk -j6 ${{ matrix.debug-flags }}
scons platform=${{ matrix.scons-platform }} target=template_debug wwise_config=profile use_static_cpp=yes wwise_sdk=wwise_sdk ${{ matrix.debug-flags }}
cd ../../../
- name: Compile Release library
- name: Compile template_release library
if: matrix.sdk-platform != 'android'
shell: bash
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
SCONS_CACHE_LIMIT: 7168
run: |
cd addons/Wwise/native
scons platform=${{ matrix.scons-platform }} target=template_release wwise_sdk=wwise_sdk -j6 ${{ matrix.release-flags }}
scons platform=${{ matrix.scons-platform }} target=template_release wwise_config=release use_static_cpp=yes wwise_sdk=wwise_sdk ${{ matrix.release-flags }}
cd ../../../
- name: Compile Android libraries
Expand Down Expand Up @@ -311,13 +306,9 @@ jobs:
rm ./README.md
rm .gitattributes
rm .gitmodules
rm project.godot
rm -r ./.git
rm -r ./.github
rm -r ./addons/Wwise/tests
mkdir -p GeneratedSoundBanks
cp addons/Wwise/tools/wwise_ids.template GeneratedSoundBanks/wwise_ids.gd
rm -r ./addons/Wwise/tools
rm -r ./tests
- name: Upload final artifact
uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions addons/Wwise/native/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ elif env["platform"] == "macos":

# Linux build settings
elif env["platform"] == "linux":
env["CXX"] = "g++-10"
env["target_path"] += "/linux/"
if env["target"] in ("template_debug"):
env["target_path"] += "debug/"
Expand Down

0 comments on commit a238bc9

Please sign in to comment.