-
Notifications
You must be signed in to change notification settings - Fork 208
197 lines (185 loc) · 5.83 KB
/
daily.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# Copyright (C) Viktor Szakats. See LICENSE.md
# SPDX-License-Identifier: MIT
---
# https://docs.github.com/actions/learn-github-actions
name: daily
on:
schedule:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '29 20 * * *'
permissions: {}
env:
CW_MAP: '1'
CW_JOBS: '4'
CW_PKG_NODELETE: '1'
CW_PKG_FLATTEN: '1'
DO_NOT_TRACK: '1'
DOCKER_CONTENT_TRUST: '1'
jobs:
linux-glibc:
if: ${{ github.repository_owner == 'curl' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: 'build'
run: |
export CW_CONFIG='dev-linux'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
DOCKER_IMAGE='debian:bookworm-slim'
export CW_CCSUFFIX='-15'
export CW_GCCSUFFIX='-12'
docker trust inspect --pretty "${DOCKER_IMAGE}"
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
--env-file <(env | grep -a -E \
'^(CW_|GITHUB_|DO_NOT_TRACK)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
- name: 'list dependencies'
run: cat urls.txt
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-glibc-daily-tool'
retention-days: 42
path: curl-*-*-*/curl*
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-glibc-daily'
retention-days: 42
path: |
*-*-linux*.*
urls.txt
linux-musl:
if: ${{ github.repository_owner == 'curl' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: 'build'
run: |
export CW_CONFIG='dev-linux-musl'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
. ./_versions.sh
docker trust inspect --pretty "${DOCKER_IMAGE}"
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
--env-file <(env | grep -a -E \
'^(CW_|GITHUB_|DO_NOT_TRACK)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
- name: 'list dependencies'
run: cat urls.txt
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-musl-daily-tool'
retention-days: 42
path: curl-*-*-*/curl*
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-musl-daily'
retention-days: 42
path: |
*-*-linux*.*
urls.txt
linux-musl-riscv64:
if: ${{ github.repository_owner == 'curl' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: 'build'
run: |
export CW_CONFIG='dev-linux-musl-r64'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
DOCKER_IMAGE='debian:sid-slim'
export CW_CCSUFFIX='-18'
export CW_GCCSUFFIX='-13'
docker trust inspect --pretty "${DOCKER_IMAGE}"
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
--env-file <(env | grep -a -E \
'^(CW_|GITHUB_|DO_NOT_TRACK)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
- name: 'list dependencies'
run: cat urls.txt
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-musl-riscv64-daily-tool'
retention-days: 42
path: curl-*-*-*/curl*
- uses: actions/upload-artifact@v4
with:
name: 'curl-linux-musl-riscv64-daily'
retention-days: 42
path: |
*-*-linux*.*
urls.txt
mac:
if: ${{ github.repository_owner == 'curl' }}
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: 'build'
run: |
export CW_CONFIG='dev-mac-macuni'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
sh -c ./_ci-mac-homebrew.sh
- name: 'list dependencies'
run: cat urls.txt
- uses: actions/upload-artifact@v4
with:
name: 'curl-macos-universal-daily-tool'
retention-days: 42
path: curl-*-universal-*/curl*
- uses: actions/upload-artifact@v4
with:
name: 'curl-macos-universal-daily'
retention-days: 42
path: |
*-*-macos*.*
urls.txt
win:
if: ${{ github.repository_owner == 'curl' }}
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 8
- name: 'build'
env:
CW_LLVM_MINGW_DL: '1'
CW_LLVM_MINGW_ONLY: '0'
run: |
export CW_CONFIG='dev-win'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
. ./_versions.sh
docker trust inspect --pretty "${DOCKER_IMAGE}"
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
--env-file <(env | grep -a -E \
'^(CW_|GITHUB_|DO_NOT_TRACK)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
- name: 'list dependencies'
run: cat urls.txt
# https://github.com/actions/upload-artifact
- uses: actions/upload-artifact@v4
with:
name: 'curl-windows-daily-tool'
retention-days: 42
path: curl-*-*-*/curl*
- uses: actions/upload-artifact@v4
with:
name: 'curl-windows-daily'
retention-days: 42
path: |
*-*-mingw*.*
urls.txt