diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 66b3a14..c40c1e4 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -8,9 +8,6 @@ inputs: arch: required: true description: Target architecture. - godot-cpp-location: - default: 'godot-cpp' - description: godot-cpp source code location. float-precision: default: 'single' description: Float precision (single or double). diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 54ba6df..b53d52c 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -115,12 +115,14 @@ jobs: 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' }} + # 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 with: FRAMEWORK_PATH: bin/macos/macos.framework diff --git a/README.md b/README.md index 681cb2a..c484ce0 100644 --- a/README.md +++ b/README.md @@ -66,13 +66,25 @@ jobs: submodules: true fetch-depth: 0 - name: 🔗 GDExtension Build - uses: ughuuu/godot-cpp-template/.github/actions/build@main + uses: godotengine/godot-cpp-template/.github/actions/build@main with: platform: ${{ matrix.platform }} arch: ${{ matrix.arch }} - godot-cpp-location: godot-cpp float-precision: single 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 uses: actions/upload-artifact@v3 with: