Skip to content

Commit cdb5493

Browse files
committed
add tool-only artifacts
Caveats: - curl tool resides under `subdir/bin/` inside the package. Can be fixed locally by renaming curl to unique names, e.g. `curl-x64.exe` or `curl-riscv64`. Maybe even to a more globally unique name, such as `curl-linux-musl-amd64`. - curl tool misses the exec permission so cannot be executed after unzipping. Needs `chmod +x` before doing so. https://github.com/actions/upload-artifact#permission-loss actions/upload-artifact#38 - There is no option to switch to tarball from zip. - Uploading a `.tar.gz` will still get it zipped by GitHub. - there is no option to skip zip and offer files as-is. (exec attribute would be lost in this case as well) actions/upload-artifact#39 actions/upload-artifact#3 (closed) actions/upload-artifact#14 (pending upload-artifact@v4) 3-4 years old unresolved issues on the side of GitHub.
1 parent 36f35e7 commit cdb5493

File tree

1 file changed

+115
-0
lines changed

1 file changed

+115
-0
lines changed

.github/workflows/build.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions: {}
1515
env:
1616
CW_MAP: '1'
1717
CW_JOBS: '3'
18+
CW_PKG_NODELETE: '1'
1819
DO_NOT_TRACK: '1'
1920
DOCKER_CONTENT_TRUST: '1'
2021

@@ -56,6 +57,12 @@ jobs:
5657
*-*-linux*.*
5758
urls.txt
5859
60+
- uses: actions/upload-artifact@v3
61+
with:
62+
name: 'curl-linux-glibc-debian-testing-llvm-tool'
63+
retention-days: 5
64+
path: curl-*-*-*/bin/curl
65+
5966
linux-glibc-debian-testing-gcc:
6067
runs-on: ubuntu-latest
6168
steps:
@@ -84,6 +91,12 @@ jobs:
8491
*-*-linux*.*
8592
urls.txt
8693
94+
- uses: actions/upload-artifact@v3
95+
with:
96+
name: 'curl-linux-glibc-debian-testing-gcc-tool'
97+
retention-days: 5
98+
path: curl-*-*-*/bin/curl
99+
87100
linux-glibc-debian-bookworm-llvm:
88101
runs-on: ubuntu-latest
89102
steps:
@@ -114,6 +127,12 @@ jobs:
114127
*-*-linux*.*
115128
urls.txt
116129
130+
- uses: actions/upload-artifact@v3
131+
with:
132+
name: 'curl-linux-glibc-debian-bookworm-llvm-tool'
133+
retention-days: 5
134+
path: curl-*-*-*/bin/curl
135+
117136
linux-glibc-debian-bookworm-gcc:
118137
runs-on: ubuntu-latest
119138
steps:
@@ -144,6 +163,12 @@ jobs:
144163
*-*-linux*.*
145164
urls.txt
146165
166+
- uses: actions/upload-artifact@v3
167+
with:
168+
name: 'curl-linux-glibc-debian-bookworm-gcc-tool'
169+
retention-days: 5
170+
path: curl-*-*-*/bin/curl
171+
147172
linux-glibc-debian-sid-llvm-riscv64:
148173
runs-on: ubuntu-latest
149174
steps:
@@ -174,6 +199,12 @@ jobs:
174199
*-*-linux*.*
175200
urls.txt
176201
202+
- uses: actions/upload-artifact@v3
203+
with:
204+
name: 'curl-linux-glibc-debian-sid-llvm-riscv64-tool'
205+
retention-days: 5
206+
path: curl-*-*-*/bin/curl
207+
177208
linux-glibc-debian-sid-gcc-riscv64:
178209
runs-on: ubuntu-latest
179210
steps:
@@ -204,6 +235,12 @@ jobs:
204235
*-*-linux*.*
205236
urls.txt
206237
238+
- uses: actions/upload-artifact@v3
239+
with:
240+
name: 'curl-linux-glibc-debian-sid-gcc-riscv64-tool'
241+
retention-days: 5
242+
path: curl-*-*-*/bin/curl
243+
207244
linux-musl-debian-testing-llvm:
208245
runs-on: ubuntu-latest
209246
steps:
@@ -232,6 +269,12 @@ jobs:
232269
*-*-linux*.*
233270
urls.txt
234271
272+
- uses: actions/upload-artifact@v3
273+
with:
274+
name: 'curl-linux-musl-debian-testing-llvm-tool'
275+
retention-days: 5
276+
path: curl-*-*-*/bin/curl
277+
235278
linux-musl-debian-testing-gcc:
236279
runs-on: ubuntu-latest
237280
steps:
@@ -260,6 +303,12 @@ jobs:
260303
*-*-linux*.*
261304
urls.txt
262305
306+
- uses: actions/upload-artifact@v3
307+
with:
308+
name: 'curl-linux-musl-debian-testing-gcc-tool'
309+
retention-days: 5
310+
path: curl-*-*-*/bin/curl
311+
263312
linux-musl-debian-bookworm-llvm:
264313
runs-on: ubuntu-latest
265314
steps:
@@ -290,6 +339,12 @@ jobs:
290339
*-*-linux*.*
291340
urls.txt
292341
342+
- uses: actions/upload-artifact@v3
343+
with:
344+
name: 'curl-linux-musl-debian-bookworm-llvm-tool'
345+
retention-days: 5
346+
path: curl-*-*-*/bin/curl
347+
293348
linux-musl-debian-bookworm-gcc:
294349
runs-on: ubuntu-latest
295350
steps:
@@ -320,6 +375,12 @@ jobs:
320375
*-*-linux*.*
321376
urls.txt
322377
378+
- uses: actions/upload-artifact@v3
379+
with:
380+
name: 'curl-linux-musl-debian-bookworm-gcc-tool'
381+
retention-days: 5
382+
path: curl-*-*-*/bin/curl
383+
323384
linux-musl-debian-sid-llvm-riscv64:
324385
runs-on: ubuntu-latest
325386
steps:
@@ -350,6 +411,12 @@ jobs:
350411
*-*-linux*.*
351412
urls.txt
352413
414+
- uses: actions/upload-artifact@v3
415+
with:
416+
name: 'curl-linux-musl-debian-sid-llvm-riscv64-tool'
417+
retention-days: 5
418+
path: curl-*-*-*/bin/curl
419+
353420
linux-musl-debian-sid-gcc-riscv64:
354421
runs-on: ubuntu-latest
355422
steps:
@@ -380,6 +447,12 @@ jobs:
380447
*-*-linux*.*
381448
urls.txt
382449
450+
- uses: actions/upload-artifact@v3
451+
with:
452+
name: 'curl-linux-musl-debian-sid-gcc-riscv64-tool'
453+
retention-days: 5
454+
path: curl-*-*-*/bin/curl
455+
383456
linux-musl-alpine-llvm:
384457
runs-on: ubuntu-latest
385458
steps:
@@ -408,6 +481,12 @@ jobs:
408481
*-*-linux*.*
409482
urls.txt
410483
484+
- uses: actions/upload-artifact@v3
485+
with:
486+
name: 'curl-linux-musl-alpine-llvm-x86_64-tool'
487+
retention-days: 5
488+
path: curl-*-*-*/bin/curl
489+
411490
linux-musl-alpine-gcc:
412491
runs-on: ubuntu-latest
413492
steps:
@@ -436,6 +515,12 @@ jobs:
436515
*-*-linux*.*
437516
urls.txt
438517
518+
- uses: actions/upload-artifact@v3
519+
with:
520+
name: 'curl-linux-musl-alpine-gcc-x86_64-tool'
521+
retention-days: 5
522+
path: curl-*-*-*/bin/curl
523+
439524
linux-musl-from-mac:
440525
runs-on: macos-latest
441526
steps:
@@ -456,6 +541,12 @@ jobs:
456541
*-*-linux*.*
457542
urls.txt
458543
544+
- uses: actions/upload-artifact@v3
545+
with:
546+
name: 'curl-linux-musl-from-mac-x86_64-tool'
547+
retention-days: 5
548+
path: curl-*-*-*/bin/curl
549+
459550
mac-clang:
460551
runs-on: macos-latest
461552
steps:
@@ -476,6 +567,12 @@ jobs:
476567
*-*-macos*.*
477568
urls.txt
478569
570+
- uses: actions/upload-artifact@v3
571+
with:
572+
name: 'curl-macos-universal-clang-tool'
573+
retention-days: 5
574+
path: curl-*-universal-*/bin/curl
575+
479576
mac-llvm:
480577
runs-on: macos-latest
481578
steps:
@@ -496,6 +593,12 @@ jobs:
496593
*-*-macos*.*
497594
urls.txt
498595
596+
- uses: actions/upload-artifact@v3
597+
with:
598+
name: 'curl-macos-universal-llvm-tool'
599+
retention-days: 5
600+
path: curl-*-universal-*/bin/curl
601+
499602
win-llvm:
500603
runs-on: ubuntu-latest
501604
steps:
@@ -530,6 +633,12 @@ jobs:
530633
*-*-mingw*.*
531634
urls.txt
532635
636+
- uses: actions/upload-artifact@v3
637+
with:
638+
name: 'curl-windows-llvm-tool'
639+
retention-days: 5
640+
path: curl-*-*-*/bin/curl.exe
641+
533642
win-gcc:
534643
runs-on: ubuntu-latest
535644
steps:
@@ -563,3 +672,9 @@ jobs:
563672
path: |
564673
*-*-mingw*.*
565674
urls.txt
675+
676+
- uses: actions/upload-artifact@v3
677+
with:
678+
name: 'curl-windows-gcc-noarm64-tool'
679+
retention-days: 5
680+
path: curl-*-*-*/bin/curl.exe

0 commit comments

Comments
 (0)