Skip to content

Nightly

Nightly #416

Workflow file for this run

name: Nightly
on:
workflow_dispatch:
schedule:
- cron: "37 04 * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
id: check_last_run
with:
route: GET /repos/${{github.repository}}/actions/workflows/nightly.yml/runs?per_page=1&status=completed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: "echo Last nightly build: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}"
outputs:
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}
build_ubuntu:
name: Build Ubuntu
needs: [check]
if: needs.check.outputs.last_sha != github.sha
permissions: write-all
uses: ./.github/workflows/nightly_build.yml
with:
os: ubuntu-latest
secrets: inherit
build_windows:
name: Build Windows
needs: [check]
if: needs.check.outputs.last_sha != github.sha
permissions: write-all
uses: ./.github/workflows/nightly_build.yml
with:
os: windows-latest
secrets: inherit
build_macos:
name: Build macOS
needs: [check]
if: needs.check.outputs.last_sha != github.sha
permissions: write-all
uses: ./.github/workflows/nightly_build.yml
with:
os: macos-latest
secrets: inherit