fix ci. Remove unused stuff from action.

add example of how to sign also. Change action path.

Update README.md

Update builds.yml

Update builds.yml
pull/27/head
Dragos Daian 2024-04-06 16:21:54 +02:00
parent 3a2f003af7
commit bec21db933
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: