-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.71 KB
/
test.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
40
41
42
43
44
45
46
47
48
49
# Github Actions CI
# Importantly, github CI support macos environments.
# Daily build to ensure that potential problems get caught (NB: I have had issues
# where a working setup no longer worked due to bit rot, which would have been
# caught with a regular build like this).
# I am running up close to maximum execution time, so very likely I will need to
# refactor/come up with some other way to do this.
# - docs on different available runners can be found here
# - https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
# [[file:../../workstation.org::*Github Actions CI][Github Actions CI:1]]
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches: main
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
build:
strategy:
matrix:
os:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
- macos-13 # x86
- macos-latest # aarch
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# ref: ${{ github.sha }}
- run: ./test/ci.sh
env:
WORKSTATION_VERSION: ${{ github.event.pull_request.head.sha }}
BW_CLIENTID: ${{ secrets.BW_CLIENTID }}
BW_CLIENTSECRET: ${{ secrets.BW_CLIENTSECRET }}
WS_BW_MASTER_PASS: ${{ secrets.WS_BW_MASTER_PASS }}
# Github Actions CI:1 ends here