ci: add macOS + Windows + Linux build #10
Workflow file for this run
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 Launcher | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: chickensoft-games/setup-godot@v1 | |
with: | |
version: 4.2.1 | |
use-dotnet: false | |
- name: Verify Setup | |
run: | | |
godot --version | |
- name: Export build | |
run: | | |
mkdir -p build # the output directory needs to exist beforehand | |
echo ${{ secrets.GODOT_MACOS_NOTARIZATION_API_KEY }} | base64 --decode > notarization_api_key.p8 | |
# codesign --help | |
xcrun notarytool --version | |
godot --headless --export-debug macOS --verbose 2>&1 # stderr is not appearing in logs? | |
echo status $? | |
env: | |
GODOT_MACOS_NOTARIZATION_API_KEY_ID: | |
${{ secrets.GODOT_MACOS_NOTARIZATION_API_KEY_ID }} | |
GODOT_MACOS_NOTARIZATION_API_KEY: ./notarization_api_key.p8 | |
GODOT_MACOS_NOTARIZATION_API_UUID: | |
${{ secrets.GODOT_MACOS_NOTARIZATION_API_UUID }} | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: drivechain_launcher_${{ runner.os }} | |
if-no-files-found: error | |
path: build/drivechain_launcher-osx64-1.2.0.app |