-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.17 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Nightly Release
on:
# This can be used to automatically publish nightlies at UTC nighttime
schedule:
- cron: '0 3 * * *' # run at 3 AM UTC
# This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch:
jobs:
date-check:
runs-on: ubuntu-latest
name: Check latest commit
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@v4
- name: print latest_commit
run: echo ${{ github.sha }}
- id: should_run
continue-on-error: true
name: check latest commit is less than a day
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
build:
needs: date-check
if: ${{ needs.date-check.outputs.should_run != 'false' }}
runs-on: ubuntu-latest
steps:
# Clone this repo
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
# Download and setup msvc-wine
- name: "Setup msvc-wine"
id: "msvc"
uses: "./.github/actions/msvc-wine"