Skip to content

github actions settings 21 #15

github actions settings 21

github actions settings 21 #15

Workflow file for this run

name: Build QuarkPhysics Extension
on:
workflow_call:
push:
pull_request:
merge_group:
env:
LIBNAME: example
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
# Debug templates
- platform: linux
float-precision: single
arch: x86_64
target-type: template_debug
os: ubuntu-20.04
- platform: windows
float-precision: single
arch: x86_32
target-type: template_debug
os: windows-latest
- platform: windows
float-precision: single
arch: x86_64
target-type: template_debug
os: windows-latest
- platform: macos
float-precision: single
arch: universal
target-type: template_debug
os: macos-latest
- platform: android
float-precision: single
arch: arm64
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: single
arch: arm32
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: single
arch: x86_64
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: single
arch: x86_32
target-type: template_debug
os: ubuntu-20.04
- platform: ios
float-precision: single
arch: arm64
target-type: template_debug
os: macos-latest
- platform: web
float-precision: single
arch: wasm32
target-type: template_debug
os: ubuntu-20.04
# Release templates
- platform: linux
float-precision: single
arch: x86_64
target-type: template_release
os: ubuntu-20.04
# Double precision templates
# Double precision debug templates
- platform: linux
float-precision: double
arch: x86_64
target-type: template_debug
os: ubuntu-20.04
- platform: windows
float-precision: double
arch: x86_32
target-type: template_debug
os: windows-latest
- platform: windows
float-precision: double
arch: x86_64
target-type: template_debug
os: windows-latest
- platform: macos
float-precision: double
arch: universal
target-type: template_debug
os: macos-latest
- platform: android
float-precision: double
arch: arm64
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: double
arch: arm32
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: double
arch: x86_64
target-type: template_debug
os: ubuntu-20.04
- platform: android
float-precision: double
arch: x86_32
target-type: template_debug
os: ubuntu-20.04
- platform: ios
float-precision: double
arch: arm64
target-type: template_debug
os: macos-latest
- platform: web
float-precision: double
arch: wasm32
target-type: template_debug
os: ubuntu-20.04
# Double precision release templates
- platform: linux
float-precision: double
arch: x86_64
target-type: template_release
os: ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
# Build
- name: 🔗 GDExtension Debug Build
uses: ./.github/actions/build
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
float-precision: ${{ matrix.float-precision }}
build-target-type: ${{ matrix.target-type }}
# Sign for Mac
- name: Mac Sign
if: ${{ matrix.platform == 'macos' && env.APPLE_CERT_BASE64 }}
env:
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
uses: ./.github/actions/sign
with:
FRAMEWORK_PATH: project/addons/quarkphysics/bin/macos.framework
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }}
APPLE_DEV_PASSWORD: ${{ secrets.APPLE_DEV_PASSWORD }}
APPLE_DEV_ID: ${{ secrets.APPLE_DEV_ID }}
APPLE_DEV_TEAM_ID: ${{ secrets.APPLE_DEV_TEAM_ID }}
APPLE_DEV_APP_ID: ${{ secrets.APPLE_DEV_APP_ID }}
# Cleanup for Windows
- name: Windows - Delete compilation files
if: ${{ matrix.platform == 'windows' }}
shell: pwsh
run: |
Remove-Item project/addons/quarkphysics/bin/* -Include *.exp,*.lib,*.pdb -Force
# Upload Artifact
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: godot-quarkphysics-${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.float-precision }}-${{ matrix.target-type }}
path: |
${{ github.workspace }}/project/addons/quarkphysics/bin/**
# Package the entire project folder as an artifact
package:
runs-on: ubuntu-20.04
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Upload Project Artifact
uses: actions/upload-artifact@v4
with:
name: project-artifact
path: project/**