From 8b432311f9cdecf5a05cebc03820d5d2a418dd0a Mon Sep 17 00:00:00 2001 From: Sam Kaufman Date: Tue, 16 Apr 2024 19:55:45 -0700 Subject: [PATCH] Add no-sccache nightly builds. --- .github/workflows/nightly-build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nightly-build.yaml diff --git a/.github/workflows/nightly-build.yaml b/.github/workflows/nightly-build.yaml new file mode 100644 index 0000000..0a8f488 --- /dev/null +++ b/.github/workflows/nightly-build.yaml @@ -0,0 +1,25 @@ +name: nightly-build +on: + schedule: + - cron: "15 8 * * *" # 8:15 AM UTC / 1:15 AM PDT +jobs: + # Thanks to https://stackoverflow.com/a/76596449/110389 + check: + runs-on: 'ubuntu-latest' + steps: + - uses: octokit/request-action@v2.x + id: check_last_run + with: + route: GET /repos/${{github.repository}}/actions/workflows/daily.yml/runs?per_page=1&status=completed + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + outputs: + last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }} + + build: + needs: [check] + if: needs.check.outputs.last_sha != github.sha + uses: ./.github/workflows/build-app.yaml + with: + disable_sccache: true + secrets: inherit \ No newline at end of file