-
Notifications
You must be signed in to change notification settings - Fork 92
60 lines (58 loc) · 1.79 KB
/
pull-req-precheck.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
50
51
52
53
54
55
56
57
58
59
60
name: pull-request-precheck
on:
workflow_dispatch:
pull_request:
branches:
- "master"
- "a/*"
jobs:
determine_asy_version:
runs-on: ubuntu-22.04
outputs:
asyver: ${{ steps.determine_asyver.outputs.asyver }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Determine version suffix
shell: bash
id: determine_asyver
run: |
asyver="$(git describe --long | sed -e 's/git-\([0-9]*\)-g.*/-\1/' | sed -e 's/-0-g.*//')ci" || asyver=""
echo "Asymptote version is $asyver"
echo "asyver=$asyver" >> "$GITHUB_OUTPUT"
build-asy-linux:
needs: determine_asy_version
uses: ./.github/workflows/build-asy-linux.yml
with:
version_override: ${{ needs.determine_asy_version.outputs.asyver }}
build-asy-windows:
needs: determine_asy_version
uses: ./.github/workflows/build-asy-windows.yml
with:
version_override: ${{ needs.determine_asy_version.outputs.asyver }}
test-asy-linux:
needs: [build-asy-linux]
uses: ./.github/workflows/test-asy-linux.yml
test-asy-windows:
needs: [build-asy-windows]
uses: ./.github/workflows/test-asy-windows.yml
build-gui:
needs: determine_asy_version
uses: ./.github/workflows/build-gui.yml
with:
version_override: ${{ needs.determine_asy_version.outputs.asyver }}
package-asy-install-file:
needs:
- build-asy-windows
- build-gui
- build-asy-linux
uses: ./.github/workflows/package-asy-installer-win.yml
precheck-pass: # this is a dummy step with the sole purpose of making the PR need only this job to pass
needs:
- test-asy-linux
- test-asy-windows
- package-asy-install-file
runs-on: "ubuntu-22.04"
steps:
- run: echo All prechecks pass!