Skip to content

Commit f9503c0

Browse files
committed
weekly build every monday
1 parent a3dbfae commit f9503c0

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Build distribution
22
on:
3+
workflow_dispatch:
34
push:
4-
branches:
5-
- main
5+
schedule:
6+
- cron: '0 0 * * MON'
67
jobs:
7-
build-llvm-bootstrap:
8+
build-stage-1:
89
name: Build bootstrap LLVM
910
runs-on: ubuntu-latest
1011
steps:
@@ -19,18 +20,18 @@ jobs:
1920
- uses: actions/upload-artifact@main
2021
if: always()
2122
with:
22-
name: llvm-bootstrap
23+
name: build-stage-1
2324
path: artifact.tar
2425

25-
build-llvm-instrumented:
26+
build-stage-2:
2627
name: Build instrumented LLVM
27-
needs: build-llvm-bootstrap
28+
needs: build-stage-1
2829
runs-on: ubuntu-latest
2930
steps:
3031
- uses: actions/checkout@main
3132
- uses: actions/download-artifact@main
3233
with:
33-
name: llvm-bootstrap
34+
name: build-stage-1
3435
- name: Install dependencies and unpack artifact
3536
run: bash ci.sh "do_deps && do_unpack"
3637
- name: Build
@@ -41,18 +42,18 @@ jobs:
4142
- uses: actions/upload-artifact@main
4243
if: always()
4344
with:
44-
name: llvm-instrumented
45+
name: build-stage-2
4546
path: artifact.tar
4647

47-
build-llvm-profiling:
48+
build-stage-3:
4849
name: Profile instrumented LLVM
49-
needs: build-llvm-instrumented
50+
needs: build-stage-2
5051
runs-on: ubuntu-latest
5152
steps:
5253
- uses: actions/checkout@main
5354
- uses: actions/download-artifact@main
5455
with:
55-
name: llvm-instrumented
56+
name: build-stage-2
5657
- name: Install dependencies and unpack artifact
5758
run: bash ci.sh "do_deps && do_unpack"
5859
- name: Profile
@@ -63,18 +64,18 @@ jobs:
6364
- uses: actions/upload-artifact@main
6465
if: always()
6566
with:
66-
name: llvm-profiling
67+
name: build-stage-3
6768
path: artifact.tar
6869

69-
build-llvm-final:
70+
build-stage-4:
7071
name: Build final LLVM
71-
needs: build-llvm-profiling
72+
needs: build-stage-3
7273
runs-on: ubuntu-latest
7374
steps:
7475
- uses: actions/checkout@main
7576
- uses: actions/download-artifact@main
7677
with:
77-
name: llvm-profiling
78+
name: build-stage-3
7879
- name: Install dependencies and unpack artifact
7980
run: bash ci.sh "do_deps && do_unpack"
8081
- name: Build
@@ -85,18 +86,18 @@ jobs:
8586
- uses: actions/upload-artifact@main
8687
if: always()
8788
with:
88-
name: llvm-final
89+
name: build-stage-4
8990
path: artifact.tar
9091

91-
build-llvm-dist:
92+
build-stage-5:
9293
name: Make distribution with binutils
93-
needs: build-llvm-final
94+
needs: build-stage-4
9495
runs-on: ubuntu-latest
9596
steps:
9697
- uses: actions/checkout@main
9798
- uses: actions/download-artifact@main
9899
with:
99-
name: llvm-final
100+
name: build-stage-4
100101
- name: Install dependencies and unpack artifact
101102
run: bash ci.sh "do_deps && do_unpack"
102103
- name: Build binutils
@@ -108,19 +109,19 @@ jobs:
108109
- uses: actions/upload-artifact@main
109110
with:
110111
name: distribution
111-
path: toolchain-dist.tar.xz
112+
path: toolchain-build.tar.xz
112113
- name: Generate revision
113114
run: echo "REVISION=$(bash ci.sh do_revision)" >> $GITHUB_ENV
114115
- uses: softprops/action-gh-release@master
115116
with:
116117
tag_name: ${{env.REVISION}}
117118
body_path: revision-notes.md
118-
files: toolchain-dist.tar.xz
119+
files: toolchain-build.tar.xz
119120
- name: Pack artifact
120121
if: always()
121122
run: bash ci.sh do_pack
122123
- uses: actions/upload-artifact@main
123124
if: always()
124125
with:
125-
name: llvm-dist
126+
name: build-stage-5
126127
path: artifact.tar

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function do_dist() {
133133
tar --sort=name \
134134
--mtime='1970-01-01' \
135135
--owner=0 --group=0 --numeric-owner \
136-
-I pixz -cf toolchain-dist.tar.xz \
136+
-I pixz -cf toolchain-build.tar.xz \
137137
-C "$install" $(ls "$install")
138138
}
139139

0 commit comments

Comments
 (0)