Files
gdvapi/.github/workflows/builds.yml
Dragos Daian 8f3f206ee4 Add build so that it can be reused.
fix issue

update

Update action.yml

lint

Update action.yml

Update action.yml

Update build.yml

Update build.yml

Update action.yml

Update action.yml

update with only 1 action

Revert "try at root lvl"

This reverts commit 0c46c0af695f265b288923d90162a7fad3c2e2d6.

try at root lvl

check to see if works with 4.2

upd

update gdextension location to root

upd

upd

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update action.yml

upd

Update action.yml

Update build.yml

Update build.yml

upd

upd

fix

update with matrixes

upd

upd

upd

Update builds.yml

Update build-gdextension.yml

Update builds.yml

rename

Update action.yml

Remove thirdparty.txt

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update README.md

Update README.md

Update action.yml

Add build so that it can be reused.

fix issue

update

Update action.yml

lint

Update action.yml

Update action.yml

Update build.yml

Update build.yml

Update action.yml

Update action.yml

update with only 1 action

Revert "try at root lvl"

This reverts commit 0c46c0af695f265b288923d90162a7fad3c2e2d6.

try at root lvl

check to see if works with 4.2

upd

update gdextension location to root

upd

upd

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update action.yml

upd

Update action.yml

Update build.yml

Update build.yml

upd

upd

fix

update with matrixes

upd

upd

upd

Update builds.yml

Update build-gdextension.yml

Update builds.yml

rename

update thirdparty

Update action.yml

Update action.yml

update readme.

Update builds.yml

Update builds.yml

upd binary name

Update action.yml

upd

Update Info.plist

remove -

upd

update readme

upd

add thirdparty. Update info about where the script comes from.

Update action.yml

Update builds.yml

update

upd

Update action.yml

update readme

Update action.yml

update

Update README.md

Update README.md

Update README.md

Update README.md

Update README.md

Update README.md

Update action.yml

Update action.yml

try debug symbols

Update action.yml

update

Update action.yml

Update action.yml

Update action.yml

Update action.yml

use macos 14.3. See if anything changes

Update action.yml

Update README.md

Update action.yml

Update action.yml

Update action.yml

try sudo in sh

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update action.yml

try to staple too?

Update action.yml

Update action.yml

Update action.yml

Update action.yml

Update action.yml

update readme.

Update builds.yml

Update builds.yml

upd binary name

Update action.yml

upd

Update Info.plist

remove -

upd

update readme

upd

add thirdparty. Update info about where the script comes from.

Update action.yml

Update builds.yml

update

upd

Update action.yml

update readme

Update action.yml

update

Co-Authored-By: Patrick Exner (FlameLizard) <patrick.exner1@web.de>
2024-04-05 16:20:50 +02:00

145 lines
4.1 KiB
YAML

name: Build GDExtension
on:
workflow_call:
push:
env:
LIBNAME: example
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: linux
float-precision: single
arch: x86_64
os: ubuntu-20.04
- platform: windows
float-precision: single
arch: x86_32
os: windows-latest
- platform: windows
float-precision: single
arch: x86_64
os: windows-latest
- platform: macos
float-precision: single
arch: universal
os: macos-latest
- platform: android
float-precision: single
arch: arm64
os: ubuntu-20.04
- platform: android
float-precision: single
arch: arm32
os: ubuntu-20.04
- platform: android
float-precision: single
arch: x86_64
os: ubuntu-20.04
- platform: android
float-precision: single
arch: x86_32
os: ubuntu-20.04
- platform: ios
float-precision: single
arch: arm64
os: macos-latest
- platform: web
float-precision: single
arch: wasm32
os: ubuntu-20.04
- platform: linux
float-precision: double
arch: x86_64
os: ubuntu-20.04
- platform: windows
float-precision: double
arch: x86_32
os: windows-latest
- platform: windows
float-precision: double
arch: x86_64
os: windows-latest
- platform: macos
float-precision: double
arch: universal
os: macos-latest
- platform: android
float-precision: double
arch: arm64
os: ubuntu-20.04
- platform: android
float-precision: double
arch: arm32
os: ubuntu-20.04
- platform: android
float-precision: double
arch: x86_64
os: ubuntu-20.04
- platform: android
float-precision: double
arch: x86_32
os: ubuntu-20.04
- platform: ios
float-precision: double
arch: arm64
os: macos-latest
- platform: web
float-precision: double
arch: wasm32
os: ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
# Lint
#- name: Setup clang-format
# shell: bash
# run: |
# python -m pip install clang-format
#- name: Run clang-format
# shell: bash
# run: |
# clang-format src/** --dry-run --Werror
# Build
- name: 🔗 GDExtension Build
uses: ./.github/actions/build
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
godot-cpp-location: godot-cpp
float-precision: ${{ matrix.float-precision }}
build-target-type: template_release
# Sign
- name: Mac Sign
if: ${{ matrix.platform == 'macos' }}
uses: ./.github/actions/sign
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: Windows - Delete compilation files
if: ${{ matrix.platform == 'windows' }}
shell: pwsh
run: |
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: godot-cpp-template
path: |
${{ github.workspace }}/bin/**