5
5
on :
6
6
push :
7
7
branches : [ 'trunk', 'next', 'wip/**' ]
8
- tags : [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
8
+ # tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
9
9
pull_request :
10
- branches : ['trunk', 'next']
10
+ branches : [ 'trunk', 'next' ]
11
11
12
12
jobs :
13
13
14
14
Focal-Assets :
15
15
runs-on : ubuntu-latest
16
16
env : { CICACHE: "/tmp/cicache", CITAG: "focal" }
17
17
steps :
18
- - uses : actions/checkout@v4
19
- - uses : actions/cache@v3
18
+ - uses : actions/checkout@v4.1.1
19
+ with : { fetch-depth: 0 }
20
+ - run : |
21
+ git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
22
+ git submodule update --init --recursive
23
+ - uses : actions/cache@v4
20
24
with : { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
21
25
- name : ' Prepare Docker Image'
22
26
run : |
@@ -25,12 +29,12 @@ jobs:
25
29
- name : ' Build Dist Assets'
26
30
run : |
27
31
misc/cirun -u 1000 make mkassets
28
- - uses : actions/upload-artifact@v3.1.3
32
+ - uses : actions/upload-artifact@v4
29
33
with : { name: assets, path: assets/ }
30
- - uses : actions/upload-artifact@v3.1.3
34
+ - uses : actions/upload-artifact@v4
31
35
with : { name: dist-tarball, path: assets/*.tar* }
32
36
- name : ' Upload API Docs' # http://tim-janik.github.io/docs/anklang
33
- if : github.ref == 'refs/heads/trunk'
37
+ if : github.repository == 'tim-janik/anklang' && github. ref == 'refs/heads/trunk'
34
38
run : |
35
39
misc/cirun -u 1000 make -j`nproc` all
36
40
(umask 0077 && cat <<< "${{ secrets.SSH_ID_GHDOCS4ANKLANG_ECDSA }}" > .git/.ssh_id_ghdocs4anklang)
40
44
runs-on : ubuntu-latest
41
45
env : { CICACHE: "/tmp/cicache", CITAG: "arch" }
42
46
steps :
43
- - uses : actions/checkout@v4
44
- - uses : actions/cache@v3
47
+ - uses : actions/checkout@v4.1.1
48
+ with : { fetch-depth: 0 }
49
+ - run : |
50
+ git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
51
+ git submodule update --init --recursive
52
+ - uses : actions/cache@v4
45
53
with : { path: "/tmp/cicache", key: "ciarch-${{hashFiles ('misc/Dockerfile.arch')}}" }
46
54
- name : ' Prepare Docker Image'
47
55
run : |
@@ -54,19 +62,21 @@ jobs:
54
62
misc/cirun -u 1000 make -j`nproc` check
55
63
misc/cirun -u 1000 make x11test-v
56
64
# Artifact upload from x11test
57
- - uses : actions/upload-artifact@v3.1.3
65
+ - uses : actions/upload-artifact@v4
58
66
if : always()
59
- with :
60
- name : x11test
61
- path : out/x11test/
67
+ with : { name: "x11test", path: "out/x11test/" }
62
68
63
69
Focal-Clang-Tidy :
64
70
if : ${{ ! contains(github.ref, 'refs/tags/') }}
65
71
runs-on : ubuntu-latest
66
72
env : { CICACHE: "/tmp/cicache", CITAG: "focal" }
67
73
steps :
68
- - uses : actions/checkout@v4
69
- - uses : actions/cache@v3
74
+ - uses : actions/checkout@v4.1.1
75
+ with : { fetch-depth: 0 }
76
+ - run : |
77
+ git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
78
+ git submodule update --init --recursive
79
+ - uses : actions/cache@v4
70
80
with : { path: "/tmp/cicache", key: "cifocal-${{hashFiles ('misc/Dockerfile.focal')}}" }
71
81
- name : ' Prepare Docker Image'
72
82
run : |
@@ -80,35 +90,30 @@ jobs:
80
90
run : |
81
91
misc/cirun -u 1000 make -j`nproc` clang-tidy
82
92
# Artifact upload from clang-tidy
83
- - uses : actions/upload-artifact@v3.1.3
93
+ - uses : actions/upload-artifact@v4
84
94
with : { name: clang-tidy, path: out/clang-tidy/ }
85
-
86
- Release-Upload :
87
- needs : [Focal-Assets, Arch-Replay]
88
- if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
89
- env : { GH_TOKEN: "${{ github.token }}" }
90
- runs-on : ubuntu-latest
91
- steps :
92
- - uses : actions/checkout@v4
93
- - name : Download Release Assets
94
- uses : actions/download-artifact@v3
95
- - run : ls -lR assets/
96
- - name : Create Release with Assets
97
- run : misc/publish.sh
95
+ - name : ' Make branch-check'
96
+ # Use non-0 exit status for a failing branch-check on PRs
97
+ run : |
98
+ test -z "${{ github.event.pull_request }}" || BRANCH_CHECK_EXIT=77
99
+ misc/cirun -u 1000 make branch-check BRANCH_CHECK_EXIT=$BRANCH_CHECK_EXIT
98
100
99
101
Ping-IRC :
100
102
if : always()
101
- needs : [Focal-Assets, Arch-Replay, Focal-Clang-Tidy, Release-Upload ]
103
+ needs : [Focal-Assets, Arch-Replay, Focal-Clang-Tidy]
102
104
runs-on : ubuntu-latest
103
105
steps :
104
- - uses : actions/checkout@v3
106
+ - uses : actions/checkout@v4.1.1
107
+ with : { fetch-depth: 0 }
108
+ - run : |
109
+ git fetch -f --tags # Fix actions/checkout annotated tag mess; actions/checkout#290
110
+ git submodule update --init --recursive
105
111
- name : Check Jobs
106
112
run : |
107
- echo '${{ needs.Focal-Assets.result }}' '${{ needs.Arch-Replay.result }}' '${{ needs.Focal-Clang-Tidy.result }}' '${{ needs.Release-Upload.result }}'
113
+ echo '${{ needs.Focal-Assets.result }}' '${{ needs.Arch-Replay.result }}' '${{ needs.Focal-Clang-Tidy.result }}'
108
114
[[ ${{ needs.Focal-Assets.result }} =~ success|skipped ]]
109
115
[[ ${{ needs.Arch-Replay.result }} =~ success|skipped ]]
110
116
[[ ${{ needs.Focal-Clang-Tidy.result }} =~ success|skipped ]]
111
- [[ ${{ needs.Release-Upload.result }} =~ success|skipped ]]
112
117
- name : Ping IRC
113
118
if : always()
114
119
run : |
0 commit comments