Trigger window resize flow on GLFW3 when the window content scale cha… #1
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: CI - Main | |
on: | |
push: | |
branches-ignore: | |
- 'skip-ci-*' | |
- 'DEFEDIT-*' | |
- 'editor-dev' | |
repository_dispatch: {} | |
env: | |
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} | |
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }} | |
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }} | |
NOTARIZATION_ITC_PROVIDER: ${{ secrets.NOTARIZATION_ITC_PROVIDER }} | |
DM_PACKAGES_URL: ${{ secrets.DM_PACKAGES_URL }} | |
DM_ARCHIVE_DOMAIN: ${{ secrets.DM_ARCHIVE_DOMAIN }} | |
DM_RELEASE_REPOSITORY: ${{ secrets.DM_RELEASE_REPOSITORY }} | |
GCLOUD_EDITOR_SERVICE_KEY: ${{ secrets.GCLOUD_EDITOR_SERVICE_KEY }} | |
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }} | |
MACOS_CERTIFICATE_PASS: ${{ secrets.MACOS_CERTIFICATE_PASS }} | |
BUILD_BRANCH: ${{ github.event.client_payload.branch }} | |
SERVICES_GITHUB_TOKEN: ${{ secrets.SERVICES_GITHUB_TOKEN }} | |
STEAM_CONFIG_VDF: ${{ secrets.STEAM_CONFIG_VDF }} | |
DEFOLD_EDITOR_DISABLE_PERFORMANCE_TESTS: true | |
SLACK_NOTIFICATIONS_ENABLED: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/master' }} | |
jobs: | |
# ---- BUILD ENGINE VERSIONS ------------------ | |
bld-eng-windows: | |
strategy: | |
matrix: | |
platform: [win32, x86_64-win32] | |
runs-on: windows-latest | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', shell: bash, run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
shell: bash, | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-darwin: | |
strategy: | |
matrix: | |
platform: [x86_64-macos, arm64-macos, arm64-ios, x86_64-ios] | |
runs-on: macos-14 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'XCode', uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd, with: { xcode-version: '15.4' } }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-web: | |
strategy: | |
matrix: | |
platform: [js-web, wasm-web] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-tests --skip-builtins --skip-docs --skip-build-tests engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-android: | |
strategy: | |
matrix: | |
platform: [armv7-android, arm64-android] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-tests --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-linux: | |
strategy: | |
matrix: | |
platform: [x86_64-linux] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-switch: | |
strategy: | |
matrix: | |
platform: [arm64-nx64] | |
runs-on: windows-latest | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', shell: bash, run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
shell: bash, | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-docs --skip-tests engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
bld-eng-ps: | |
strategy: | |
matrix: | |
platform: [x86_64-ps4, x86_64-ps5] | |
runs-on: windows-latest | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Setup dotnet', uses: actions/setup-dotnet@v4, with: {dotnet-version: '9.x', dotnet-quality: 'preview'}}, | |
{ name: 'Install dependencies', shell: bash, run: 'ci/ci.sh install --platform=${{ matrix.platform }}' }, | |
{ | |
name: 'Build engine', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_engine != true)), | |
shell: bash, | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --archive --skip-docs --skip-tests engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}: platform: ${{ matrix.platform }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
# ---- BUILD BOB AND SDK ------------------ | |
build-bob: | |
needs: [bld-eng-darwin, bld-eng-windows, bld-eng-linux, bld-eng-android, bld-eng-web, bld-eng-switch, bld-eng-ps] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ | |
name: 'Build bob', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_bob != true)), | |
run: 'ci/ci.sh bob' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
build-sdk: | |
needs: [bld-eng-darwin, bld-eng-windows, bld-eng-linux, bld-eng-android, bld-eng-web, bld-eng-switch, bld-eng-ps] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ | |
name: 'Build SDK', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sdk != true)), | |
run: 'ci/ci.sh sdk' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
# ---- BUILD EDITOR ------------------ | |
build-editor: | |
needs: [build-bob] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ | |
name: 'Checkout', | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, | |
with: { | |
ref: '${{env.BUILD_BRANCH}}', | |
fetch-tags: true | |
} | |
}, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Install Leiningen', uses: DeLaGuardo/setup-clojure@bc7570e912b028bbcc22f457adec7fdf98e2f4ed, with: { lein: 2.8.3 } }, | |
{ name: 'Install dependencies', run: sudo apt-get install -y libgl1-mesa-dev libglw1-mesa-dev freeglut3-dev }, | |
{ | |
name: 'Build editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_editor != true)), | |
run: 'ci/ci.sh build-editor' | |
}, | |
{ | |
name: 'Archive editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_editor != true)), | |
run: 'ci/ci.sh archive-editor' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
sign-editor-darwin: | |
needs: [build-editor] | |
runs-on: macOS-14 | |
strategy: | |
matrix: | |
platform: [x86_64-macos, arm64-macos] | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ | |
name: 'Download editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh download-editor --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Install dependencies', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh --keychain-cert="${{env.MACOS_CERTIFICATE}}" --keychain-cert-pass="${{env.MACOS_CERTIFICATE_PASS}}" install' | |
}, | |
{ | |
name: 'Sign editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh sign-editor --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Notarize editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh --platform=${{ matrix.platform }} --notarization-username="${{env.NOTARIZATION_USERNAME}}" --notarization-password="${{env.NOTARIZATION_PASSWORD}}" --notarization-itc-provider="${{env.NOTARIZATION_ITC_PROVIDER}}" notarize-editor' | |
}, | |
{ | |
name: 'Archive editor', | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh archive-editor --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
sign-editor-windows: | |
needs: [build-editor] | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
platform: [x86_64-win32] | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, with: { ref: '${{env.BUILD_BRANCH}}' } }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ | |
name: 'Download editor', | |
shell: bash, | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh download-editor --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Install dependencies', | |
shell: bash, | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh install' | |
}, | |
{ | |
name: 'Install ext dependencies', | |
shell: bash, | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh install_ext --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Sign editor', | |
shell: bash, | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh sign-editor --gcloud-service-key="${{env.GCLOUD_EDITOR_SERVICE_KEY}}" --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Archive editor', | |
shell: bash, | |
if: (github.event_name != 'repository_dispatch') || ((github.event_name == 'repository_dispatch') && (github.event.client_payload.skip_sign != true)), | |
run: 'ci/ci.sh archive-editor --platform=${{ matrix.platform }}' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] | |
# ---- RELEASE ------------------ | |
release: | |
needs: [sign-editor-darwin, sign-editor-windows] | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ | |
name: 'Checkout', | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11, | |
with: { | |
ref: '${{env.BUILD_BRANCH}}', | |
fetch-tags: true | |
} | |
}, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12} }, | |
{ name: 'Setup git user', run: 'git config --global user.email "[email protected]" && git config --global user.name "Defold Services"' }, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install --platform=${{ matrix.platform }} --steam-config-b64="${{env.STEAM_CONFIG_VDF}}"' }, | |
{ | |
# only needed for some python dependencies (should have a separate python setup function?) | |
name: 'Install ext dependencies', | |
shell: bash, | |
run: 'ci/ci.sh install_ext' | |
}, | |
{ | |
name: 'Release', | |
run: 'ci/ci.sh release' | |
}, | |
{ | |
name: 'Publish updated API ref', | |
uses: defold/[email protected], | |
if: (github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/beta') || (github.ref == 'refs/heads/dev'), | |
with: { | |
repo: 'defold/defold.github.io', | |
token: '${{ secrets.SERVICES_GITHUB_TOKEN }}', | |
user: '[email protected]', | |
action: 'refdoc' | |
} | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure() && env.SLACK_NOTIFICATIONS_ENABLED == 'true', | |
with: {type: '${{ job.status }}', job_name: '${{ job.status }}', channel: '#defold-alarms-build', url: '${{ secrets.SLACK_WEBHOOK }}', | |
mention: 'here', mention_if: 'failure', commit: true, token: '${{ secrets.SERVICES_GITHUB_TOKEN }}'} | |
}] |