chore: update macos runners to 14 (#290) #8
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: 🌈 Release | |
on: | |
push: | |
tags: | |
- '\d+.\d+.\d+-\d+.\d+.\d+' | |
# Global Settings | |
env: | |
PROJECT_FOLDER: fmod-gdextension | |
TARGET_PATH: demo/addons/fmod/libs/ | |
TARGET_NAME: libGodotFmod | |
GODOT_VERSION: 4.3 | |
FMOD_VERSION: 20212 | |
jobs: | |
build: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows Editor Compilation | |
os: "windows-2022" | |
platform: windows | |
target: editor | |
additional-python-packages: pywin32 | |
fmod-executable-suffix: win-installer.exe | |
shell: pwsh | |
- name: Windows Debug Compilation | |
os: "windows-2022" | |
platform: windows | |
target: template_debug | |
additional-python-packages: pywin32 | |
fmod-executable-suffix: win-installer.exe | |
shell: pwsh | |
- name: Windows Release Compilation | |
os: "windows-2022" | |
platform: windows | |
target: template_release | |
additional-python-packages: pywin32 | |
fmod-executable-suffix: win-installer.exe | |
shell: pwsh | |
- name: Ubuntu Editor Compilation | |
os: "ubuntu-20.04" | |
platform: linux | |
target: editor | |
fmod-executable-suffix: linux.tar.gz | |
fmod-core-platform-folder: linux/core/lib/x86_64 | |
fmod-studio-platform-folder: linux/studio/lib/x86_64 | |
fmod-library-suffix: so | |
godot-executable-download-suffix: linux.x86_64.zip | |
godot-executable: Godot_v$GODOT_VERSION-stable_linux.x86_64 | |
shell: bash | |
- name: Ubuntu Debug Compilation | |
os: "ubuntu-20.04" | |
platform: linux | |
target: template_debug | |
fmod-executable-suffix: linux.tar.gz | |
shell: bash | |
- name: Ubuntu Release Compilation | |
os: "ubuntu-20.04" | |
platform: linux | |
target: template_release | |
fmod-executable-suffix: linux.tar.gz | |
shell: bash | |
- name: MacOS Editor Compilation | |
os: "macos-14" | |
platform: macos | |
target: editor | |
fmod-executable-suffix: osx.dmg | |
fmod-core-platform-folder: osx/core/lib | |
fmod-studio-platform-folder: osx/studio/lib | |
fmod-library-suffix: dylib | |
godot-executable-download-suffix: macos.universal.zip | |
godot-executable: Godot.app/Contents/MacOs/Godot | |
shell: bash | |
- name: MacOS Debug Compilation | |
os: "macos-14" | |
platform: macos | |
target: template_debug | |
fmod-executable-suffix: osx.dmg | |
shell: bash | |
- name: MacOS Release Compilation | |
os: "macos-14" | |
platform: macos | |
target: template_release | |
fmod-executable-suffix: osx.dmg | |
shell: bash | |
- name: Android Editor Compilation | |
os: "ubuntu-20.04" | |
platform: android | |
target: editor | |
fmod-executable-suffix: android.tar.gz | |
flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 | |
shell: bash | |
- name: Android Debug Compilation | |
os: "ubuntu-20.04" | |
platform: android | |
target: template_debug | |
fmod-executable-suffix: android.tar.gz | |
flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 | |
shell: bash | |
- name: Android Release Compilation | |
os: "ubuntu-20.04" | |
platform: android | |
target: template_release | |
fmod-executable-suffix: android.tar.gz | |
flags: ANDROID_NDK_ROOT=$ANDROID_NDK_LATEST_HOME arch=arm64 | |
shell: bash | |
- name: iOS Debug Compilation | |
os: "macos-14" | |
platform: ios | |
target: template_debug | |
fmod-executable-suffix: ios.dmg | |
shell: bash | |
- name: iOS Release Compilation | |
os: "macos-14" | |
platform: ios | |
target: template_release | |
fmod-executable-suffix: ios.dmg | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Android dependencies | |
if: ${{ matrix.platform == 'android' }} | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r23c | |
link-to-sdk: true | |
- name: Compile native plugin | |
uses: ./.github/actions/create-native-build | |
with: | |
platform: ${{ matrix.platform }} | |
target: ${{ matrix.target }} | |
additional-python-packages: ${{ matrix.additional-python-packages }} | |
flags: ${{ matrix.flags }} | |
fmod-executable-suffix: ${{ matrix.fmod-executable-suffix }} | |
fmod-user: ${{ secrets.FMODUSER }} | |
fmod-password: ${{ secrets.FMODPASS }} | |
shell: ${{ matrix.shell }} | |
package-godot-addon: | |
needs: [build] | |
strategy: | |
matrix: | |
include: | |
- os: "ubuntu-20.04" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Create android plugin | |
uses: ./.github/actions/create-android-plugin | |
- name: Download linux editor libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-editor | |
path: demo/addons/fmod/libs/linux/ | |
- name: Download linux template_debug libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-template_debug | |
path: demo/addons/fmod/libs/linux/ | |
- name: Download linux template_release libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: linux-template_release | |
path: demo/addons/fmod/libs/linux/ | |
- name: Download windows editor libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: windows-editor | |
path: demo/addons/fmod/libs/windows/ | |
- name: Download windows template_debug libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: windows-template_debug | |
path: demo/addons/fmod/libs/windows/ | |
- name: Download windows template_release libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: windows-template_release | |
path: demo/addons/fmod/libs/windows/ | |
- name: Download macos editor libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: macos-editor | |
path: demo/addons/fmod/libs/macos/ | |
- name: Download macos template_debug libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: macos-template_debug | |
path: demo/addons/fmod/libs/macos/ | |
- name: Download macos template_release libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: macos-template_release | |
path: demo/addons/fmod/libs/macos/ | |
- name: Download iOS template_debug libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: ios-template_debug | |
path: demo/addons/fmod/libs/iOS/ | |
- name: Download iOS template_release libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: ios-template_release | |
path: demo/addons/fmod/libs/iOS/ | |
- name: Download android editor libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: android-editor | |
path: demo/addons/fmod/libs/android/ | |
- name: Download android template_debug libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: android-template_debug | |
path: demo/addons/fmod/libs/android/ | |
- name: Download android template_release libraries | |
uses: actions/download-artifact@v4 | |
with: | |
name: android-template_release | |
path: demo/addons/fmod/libs/android/ | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Zip fmod addon | |
run: | | |
cd demo/addons/ | |
zip -r addons.zip fmod | |
- name: Zip android fmod plugin | |
run: | | |
cd demo/ | |
zip -r android.zip android | |
- name: Upload Addon Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./demo/addons/addons.zip | |
asset_name: addons.zip | |
asset_content_type: application/zip | |
- name: Upload Android Plugin Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./demo/android.zip | |
asset_name: android.zip | |
asset_content_type: application/zip |