CI - Engine nightly #90
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 - Engine nightly | |
on: | |
schedule: | |
# nightly at 03:00 | |
- cron: 0 3 * * * | |
env: | |
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} | |
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }} | |
DM_PACKAGES_URL: ${{ secrets.DM_PACKAGES_URL }} | |
DM_ARCHIVE_DOMAIN: ${{ secrets.DM_ARCHIVE_DOMAIN }} | |
DM_RELEASE_REPOSITORY: ${{ secrets.DM_RELEASE_REPOSITORY }} | |
jobs: | |
bld-eng-macos-64: | |
runs-on: macOS-13 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12, architecture: x64 } }, | |
{ name: 'XCode', uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd, with: { xcode-version: '15.1' } }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install' }, | |
{ | |
name: 'ASAN', | |
run: 'ci/ci.sh --platform=x86_64-macos --with-asan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'UBSAN', | |
run: 'ci/ci.sh --platform=x86_64-macos --with-ubsan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'TSAN', | |
run: 'ci/ci.sh --platform=x86_64-macos --with-tsan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure(), | |
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 }}' } | |
}] | |
bld-eng-linux-64: | |
runs-on: ubuntu-20.04 | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12, architecture: x64 } }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install' }, | |
{ | |
name: 'ASAN', | |
run: 'ci/ci.sh --platform=x86_64-linux --with-asan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'UBSAN', | |
run: 'ci/ci.sh --platform=x86_64-linux --with-ubsan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'TSAN', | |
run: 'ci/ci.sh --platform=x86_64-linux --with-tsan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'VALGRIND', | |
run: 'ci/ci.sh --platform=x86_64-linux --with-valgrind --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure(), | |
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 }}' } | |
}] | |
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, architecture: x64 } }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ 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-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure(), | |
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-win: | |
runs-on: windows-latest | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b }, | |
{ name: 'Install Python', uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c, with: { python-version: 3.12, architecture: x64 } }, | |
{ name: 'Install Java', uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9, with: { java-version: '11.0.15', distribution: 'microsoft'} }, | |
{ name: 'Install dependencies', run: 'ci/ci.sh install' }, | |
{ | |
name: 'ASAN', | |
run: 'ci/ci.sh --platform=x86_64-win32 --with-asan --skip-builtins --skip-docs engine' | |
}, | |
{ | |
name: 'Notify if build status changed', | |
uses: homoluctus/slatify@cd4b4a1158cfb3e26fe1ee35c1cd4f0247dfbf96, | |
if: failure(), | |
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 }}' } | |
}] |