Backport memory string test #41
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: Addon | |
on: | |
push: | |
branches: [master, godot-3] | |
workflow_dispatch: | |
env: | |
GODOT_MAJOR: 3 | |
TARGET: release | |
GODOT_REF: 3.5.2-stable | |
LIBRARY_PATH: addons/godot-wasm/bin | |
WASMER_VERSION: v3.1.1 | |
jobs: | |
build-addon: | |
name: Build Addon | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [linux, osx, windows] | |
include: | |
- platform: linux | |
os: ubuntu-latest | |
- platform: osx | |
os: macos-11 | |
- platform: windows | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
uses: ./.github/actions/install-deps | |
- name: Build Godot CPP | |
uses: ./.github/actions/godot-cpp | |
with: | |
platform: ${{ matrix.platform }} | |
target: ${{ env.TARGET }} | |
- name: Build Addon | |
uses: ./.github/actions/scons-build | |
with: | |
platform: ${{ matrix.platform }} | |
target: ${{ env.TARGET }} | |
godot-major: ${{ env.GODOT_MAJOR }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.platform }} | |
path: ${{ github.workspace }}/${{ env.LIBRARY_PATH }}/${{ matrix.platform }} | |
if-no-files-found: error | |
test-addon: | |
needs: build-addon | |
name: Test Addon | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [linux, osx, windows] | |
include: | |
- platform: linux | |
os: ubuntu-latest | |
- platform: osx | |
os: macos-11 | |
- platform: windows | |
os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Godot | |
id: download-godot | |
uses: ./.github/actions/download-godot | |
with: | |
version: ${{ env.GODOT_REF }} | |
- name: Download Addon | |
uses: actions/download-artifact@v3 | |
with: | |
name: ${{ matrix.platform }} | |
path: ${{ github.workspace }}/${{ env.LIBRARY_PATH }}/${{ matrix.platform }} | |
- name: Run Tests | |
uses: ./.github/actions/run-tests | |
with: | |
executable: ${{ steps.download-godot.outputs.executable }} |