Merge pull request #27 from Ughuuu/fix-and-update-ci

pull/32/head
Patrick Exner (FlameLizard) 2024-04-06 21:37:18 +02:00 committed by GitHub
commit fb22aebad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 7 deletions

View File

@ -8,9 +8,6 @@ inputs:
arch: arch:
required: true required: true
description: Target architecture. description: Target architecture.
godot-cpp-location:
default: 'godot-cpp'
description: godot-cpp source code location.
float-precision: float-precision:
default: 'single' default: 'single'
description: Float precision (single or double). description: Float precision (single or double).

View File

@ -115,12 +115,14 @@ jobs:
with: with:
platform: ${{ matrix.platform }} platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
godot-cpp-location: godot-cpp
float-precision: ${{ matrix.float-precision }} float-precision: ${{ matrix.float-precision }}
build-target-type: template_release build-target-type: template_release
# Sign # Sign
- name: Mac Sign - name: Mac Sign
if: ${{ matrix.platform == 'macos' }} # Disable sign if secrets are not set
if: ${{ matrix.platform == 'macos' && env.APPLE_CERT_BASE64 }}
env:
APPLE_CERT_BASE64: ${{ secrets.APPLE_CERT_BASE64 }}
uses: ./.github/actions/sign uses: ./.github/actions/sign
with: with:
FRAMEWORK_PATH: bin/macos/macos.framework FRAMEWORK_PATH: bin/macos/macos.framework

View File

@ -66,13 +66,25 @@ jobs:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: 🔗 GDExtension Build - name: 🔗 GDExtension Build
uses: ughuuu/godot-cpp-template/.github/actions/build@main uses: godotengine/godot-cpp-template/.github/actions/build@main
with: with:
platform: ${{ matrix.platform }} platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }} arch: ${{ matrix.arch }}
godot-cpp-location: godot-cpp
float-precision: single float-precision: single
build-target-type: template_release build-target-type: template_release
- 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 - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: