github actions settings 8 #2
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 QuarkPhysics Extension | |
on: | |
workflow_call: | |
push: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: linux | |
arch: x86_64 | |
os: ubuntu-20.04 | |
- platform: windows | |
arch: x86_32 | |
os: windows-latest | |
- platform: windows | |
arch: x86_64 | |
os: windows-latest | |
- platform: macos | |
arch: universal | |
os: macos-latest | |
- platform: android | |
arch: arm64 | |
os: ubuntu-20.04 | |
- platform: android | |
arch: arm32 | |
os: ubuntu-20.04 | |
- platform: android | |
arch: x86_64 | |
os: ubuntu-20.04 | |
- platform: android | |
arch: x86_32 | |
os: ubuntu-20.04 | |
- platform: ios | |
arch: arm64 | |
os: macos-latest | |
- platform: web | |
arch: wasm32 | |
os: ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Copy Project Directory | |
run: | | |
# Proje klasörünü kopyala | |
cp -r ${{ github.workspace }}/project ${{ github.workspace }}/project_copy | |
- name: 🔗 GDExtension Build | |
uses: godotengine/godot-cpp-template/.github/actions/build@main | |
with: | |
platform: ${{ matrix.platform }} | |
arch: ${{ matrix.arch }} | |
float-precision: single | |
build-target-type: template_release | |
- name: 🔗 GDExtension Build (Debug) | |
uses: ./.github/actions/build | |
with: | |
platform: ${{ matrix.platform }} | |
arch: ${{ matrix.arch }} | |
float-precision: ${{ matrix.float-precision }} | |
build-target-type: template_debug | |
- name: Move Build Outputs to Target Directory | |
run: | | |
# Derleme çıktılarını project/addons/quarkphysics/bin klasörüne taşı | |
mkdir -p ${{ github.workspace }}/project_copy/addons/quarkphysics/bin | |
cp -r ${{ github.workspace }}/bin/* ${{ github.workspace }}/project_copy/addons/quarkphysics/bin | |
- name: Mac Sign | |
if: ${{ matrix.platform == 'macos' && env.APPLE_CERT_BASE64 }} | |
env: | |
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }} | |
uses: godotengine/godot-cpp-template/.github/actions/sign@main | |
with: | |
FRAMEWORK_PATH: bin/macos/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 }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: GDExtension-${{ matrix.platform }}-${{ matrix.arch }} | |
path: | | |
${{ github.workspace }}/project_copy/** | |
merge: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Merge Artifacts | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: GDExtension-all | |
pattern: GDExtension-* | |
delete-merged: true |