Improve signal connection handling in AkEvent nodes #59
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
env: | |
BASE_BRANCH: ci | |
WWISE_VERSION: "2023.1.0-beta" | |
GODOT_ENGINE_VERSION: "4.1.1" | |
GODOT_ENGINE_STAGE: "stable" | |
INTEGRATION_VERSION: "2.0" | |
jobs: | |
build-all: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows | |
os: "windows-2019" | |
sdk-platform: windows | |
scons-platform: windows | |
release-flags: use_static_cpp=true | |
artifact-name: windows | |
- name: macOS | |
os: "macos-11" | |
sdk-platform: mac | |
scons-platform: macos | |
artifact-name: macos | |
- name: Linux | |
os: "ubuntu-20.04" | |
sdk-platform: linux | |
scons-platform: linux | |
artifact-name: linux | |
- name: iOS | |
os: "macos-11" | |
sdk-platform: ios | |
scons-platform: ios | |
debug-flags: arch=arm64 ios_min_version=11.0 | |
release-flags: arch=arm64 ios_min_version=11.0 | |
artifact-name: ios | |
- name: Android | |
os: "ubuntu-20.04" | |
sdk-platform: android | |
scons-platform: android | |
debug-flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 | |
release-flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 | |
artifact-name: android-lib | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Wwise SDK cache | |
id: cache-wwise-sdk | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-wwise-sdk | |
with: | |
path: addons/Wwise/native/wwise_sdk | |
key: ${{ matrix.sdk-platform }}-build-${{ env.cache-name }}-${{ env.WWISE_VERSION }} | |
# - name: Load .scons_cache directory | |
# id: cache-godot-extension | |
# uses: actions/cache@v3 | |
# with: | |
# path: ${{github.workspace}}/.scons_cache/ | |
# key: ${{matrix.sdk-platform}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | |
# restore-keys: | | |
# ${{matrix.sdk-platform}}-${{env.BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | |
# ${{matrix.sdk-platform}}-${{env.BASE_BRANCH}}-${{github.ref}} | |
# ${{matrix.sdk-platform}}-${{env.BASE_BRANCH}} | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
architecture: "x64" | |
- name: Set up dependencies (Python, SCons) | |
run: python -m pip install scons | |
- name: Set up Windows dependencies | |
if: runner.os == 'Windows' | |
run: | | |
choco install 7zip -y | |
- name: Set up Linux dependencies | |
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 | |
- name: Download Wwise SDK (Base) | |
uses: suisei-cn/[email protected] | |
if: steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/osbj3muk10dp0kt9azlag/wwise_sdk_2023.1.0_beta_base.zip?rlkey=zrf83nacc680qvbrh93c7jpre&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Download Wwise SDK (Windows) | |
uses: suisei-cn/[email protected] | |
if: runner.os == 'Windows' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/g7tqtnmtwm1ir32sfdt0q/wwise_sdk_2023.1.0_beta_win.zip?rlkey=nl38xonxw55rk0cyzomfzj0z7&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Download Wwise SDK (macOS) | |
uses: suisei-cn/[email protected] | |
if: runner.os == 'MacOS' && matrix.sdk-platform == 'mac' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/g23x4bv6471alp626gpyr/wwise_sdk_2023.1.0_beta_mac.zip?rlkey=6msjqa9uln4gnrme1g8m5dvc9&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Download Wwise SDK (Linux) | |
uses: suisei-cn/[email protected] | |
if: runner.os == 'Linux' && matrix.sdk-platform == 'linux' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/dqjr5n0hfcq54xpmmyt82/wwise_sdk_2023.1.0_beta_linux_x64.zip?rlkey=s1yw1k993676e4kdx39xtxr3f&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Download Wwise SDK (iOS) | |
uses: suisei-cn/[email protected] | |
if: runner.os == 'MacOS' && matrix.sdk-platform == 'ios' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/tmq0wfahgu6riifp0kj6q/wwise_sdk_2023.1.0_beta_ios.zip?rlkey=nx8ssb1fai0xgsdxapdo9by2r&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Download Wwise SDK (Android) | |
uses: suisei-cn/[email protected] | |
if: runner.os == 'Linux' && matrix.sdk-platform == 'android' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
with: | |
url: "https://www.dropbox.com/scl/fi/szpqfc3q46ejaskj7roap/wwise_sdk_2023.1.0_beta_android.zip?rlkey=ad5cp09mw4ga1frbii7hdkjs8&dl=1" | |
target: ./addons/Wwise/native/wwise_sdk/ | |
- name: Unzip SDK (Windows) | |
if: runner.os == 'Windows' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
run: | | |
cd ./addons/Wwise/native/wwise_sdk | |
7z x wwise_sdk_2023.1.0_beta_base.zip | |
7z x wwise_sdk_2023.1.0_beta_win.zip | |
cd ../../../../ | |
- name: Unzip SDK (macOS) | |
if: runner.os == 'MacOS' && matrix.sdk-platform == 'mac' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
run: | | |
cd ./addons/Wwise/native/wwise_sdk | |
7z x wwise_sdk_2023.1.0_beta_base.zip | |
7z x wwise_sdk_2023.1.0_beta_mac.zip | |
cd ../../../../ | |
- name: Unzip SDK (Linux) | |
if: runner.os == 'Linux' && matrix.sdk-platform == 'linux' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
run: | | |
cd ./addons/Wwise/native/wwise_sdk | |
7z x wwise_sdk_2023.1.0_beta_base.zip | |
7z x wwise_sdk_2023.1.0_beta_linux_x64.zip | |
cd ../../../../ | |
- name: Unzip SDK (iOS) | |
if: runner.os == 'MacOS' && matrix.sdk-platform == 'ios' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
run: | | |
cd ./addons/Wwise/native/wwise_sdk | |
7z x wwise_sdk_2023.1.0_beta_base.zip | |
7z x wwise_sdk_2023.1.0_beta_ios.zip | |
cd ../../../../ | |
- name: Unzip SDK (Android) | |
if: runner.os == 'Linux' && matrix.sdk-platform == 'android' && steps.cache-wwise-sdk.outputs.cache-hit != 'true' | |
run: | | |
cd ./addons/Wwise/native/wwise_sdk | |
7z x wwise_sdk_2023.1.0_beta_base.zip | |
7z x wwise_sdk_2023.1.0_beta_android.zip | |
cd ../../../../ | |
- name: Compile Debug library | |
shell: bash | |
env: | |
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ | |
SCONS_CACHE_LIMIT: 7168 | |
run: | | |
cd addons/Wwise/native | |
mkdir -p godot-cpp/bin | |
scons platform=${{ matrix.scons-platform }} target=template_debug dev_build=yes asserts=true wwise_sdk=wwise_sdk -j6 ${{ matrix.debug-flags }} | |
cd ../../../ | |
- name: Compile Release library | |
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 }} | |
cd ../../../ | |
- name: Upload libs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.artifact-name }} | |
path: addons/Wwise/native/lib | |
upload-addon: | |
runs-on: "ubuntu-20.04" | |
needs: [build-all] | |
name: Addon | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Download all libs | |
uses: actions/download-artifact@v3 | |
- name: Assemble all artifacts | |
run: | | |
ls | |
shopt -s dotglob | |
if [ ! -d "addons/Wwise/native/lib" ]; then | |
mkdir -p addons/Wwise/native/lib | |
fi | |
if [ -d windows ]; then | |
mv windows/* addons/Wwise/native/lib/ | |
rm -r windows | |
fi | |
if [ -d macos ]; then | |
mv macos/* addons/Wwise/native/lib/ | |
rm -r macos | |
fi | |
if [ -d linux ]; then | |
mv linux/* addons/Wwise/native/lib/ | |
rm -r linux | |
fi | |
if [ -d android-lib ]; then | |
mv android-lib/* addons/Wwise/native/lib/ | |
rm -r android-lib | |
fi | |
if [ -d ios ]; then | |
mv ios/* addons/Wwise/native/lib/ | |
rm -r ios | |
fi | |
- name: Clean up addon | |
run: | | |
rm -r ./addons/Wwise/native/godot-cpp | |
rm -r ./addons/Wwise/native/src | |
rm -r ./addons/Wwise/native/vs2022 | |
rm ./addons/Wwise/native/SConstruct | |
rm ./LICENSE | |
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 | |
- name: Upload final artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wwise-${{ env.WWISE_VERSION }}-for-godot-${{ env.GODOT_ENGINE_VERSION }}-${{ env.GODOT_ENGINE_STAGE }}-${{ env.INTEGRATION_VERSION }} | |
path: ./ |