Skip to content

Commit c7ef9da

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. - 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 d24aaad commit c7ef9da

File tree

1 file changed

+153
-0
lines changed

1 file changed

+153
-0
lines changed

.github/workflows/build.yml

Lines changed: 153 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,14 @@ 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: |
65+
curl-*-*-*/bin/curl
66+
urls.txt
67+
5968
linux-glibc-debian-testing-gcc:
6069
runs-on: ubuntu-latest
6170
steps:
@@ -84,6 +93,14 @@ jobs:
8493
*-*-linux*.*
8594
urls.txt
8695
96+
- uses: actions/upload-artifact@v3
97+
with:
98+
name: 'curl-linux-glibc-debian-testing-gcc-tool'
99+
retention-days: 5
100+
path: |
101+
curl-*-*-*/bin/curl
102+
urls.txt
103+
87104
linux-glibc-debian-bookworm-llvm:
88105
runs-on: ubuntu-latest
89106
steps:
@@ -114,6 +131,14 @@ jobs:
114131
*-*-linux*.*
115132
urls.txt
116133
134+
- uses: actions/upload-artifact@v3
135+
with:
136+
name: 'curl-linux-glibc-debian-bookworm-llvm-tool'
137+
retention-days: 5
138+
path: |
139+
curl-*-*-*/bin/curl
140+
urls.txt
141+
117142
linux-glibc-debian-bookworm-gcc:
118143
runs-on: ubuntu-latest
119144
steps:
@@ -144,6 +169,14 @@ jobs:
144169
*-*-linux*.*
145170
urls.txt
146171
172+
- uses: actions/upload-artifact@v3
173+
with:
174+
name: 'curl-linux-glibc-debian-bookworm-gcc-tool'
175+
retention-days: 5
176+
path: |
177+
curl-*-*-*/bin/curl
178+
urls.txt
179+
147180
linux-glibc-debian-sid-llvm-riscv64:
148181
runs-on: ubuntu-latest
149182
steps:
@@ -174,6 +207,14 @@ jobs:
174207
*-*-linux*.*
175208
urls.txt
176209
210+
- uses: actions/upload-artifact@v3
211+
with:
212+
name: 'curl-linux-glibc-debian-sid-llvm-riscv64-tool'
213+
retention-days: 5
214+
path: |
215+
curl-*-*-*/bin/curl
216+
urls.txt
217+
177218
linux-glibc-debian-sid-gcc-riscv64:
178219
runs-on: ubuntu-latest
179220
steps:
@@ -204,6 +245,14 @@ jobs:
204245
*-*-linux*.*
205246
urls.txt
206247
248+
- uses: actions/upload-artifact@v3
249+
with:
250+
name: 'curl-linux-glibc-debian-sid-gcc-riscv64-tool'
251+
retention-days: 5
252+
path: |
253+
curl-*-*-*/bin/curl
254+
urls.txt
255+
207256
linux-musl-debian-testing-llvm:
208257
runs-on: ubuntu-latest
209258
steps:
@@ -232,6 +281,14 @@ jobs:
232281
*-*-linux*.*
233282
urls.txt
234283
284+
- uses: actions/upload-artifact@v3
285+
with:
286+
name: 'curl-linux-musl-debian-testing-llvm-tool'
287+
retention-days: 5
288+
path: |
289+
curl-*-*-*/bin/curl
290+
urls.txt
291+
235292
linux-musl-debian-testing-gcc:
236293
runs-on: ubuntu-latest
237294
steps:
@@ -260,6 +317,14 @@ jobs:
260317
*-*-linux*.*
261318
urls.txt
262319
320+
- uses: actions/upload-artifact@v3
321+
with:
322+
name: 'curl-linux-musl-debian-testing-gcc-tool'
323+
retention-days: 5
324+
path: |
325+
curl-*-*-*/bin/curl
326+
urls.txt
327+
263328
linux-musl-debian-bookworm-llvm:
264329
runs-on: ubuntu-latest
265330
steps:
@@ -290,6 +355,14 @@ jobs:
290355
*-*-linux*.*
291356
urls.txt
292357
358+
- uses: actions/upload-artifact@v3
359+
with:
360+
name: 'curl-linux-musl-debian-bookworm-llvm-tool'
361+
retention-days: 5
362+
path: |
363+
curl-*-*-*/bin/curl
364+
urls.txt
365+
293366
linux-musl-debian-bookworm-gcc:
294367
runs-on: ubuntu-latest
295368
steps:
@@ -320,6 +393,14 @@ jobs:
320393
*-*-linux*.*
321394
urls.txt
322395
396+
- uses: actions/upload-artifact@v3
397+
with:
398+
name: 'curl-linux-musl-debian-bookworm-gcc-tool'
399+
retention-days: 5
400+
path: |
401+
curl-*-*-*/bin/curl
402+
urls.txt
403+
323404
linux-musl-debian-sid-llvm-riscv64:
324405
runs-on: ubuntu-latest
325406
steps:
@@ -350,6 +431,14 @@ jobs:
350431
*-*-linux*.*
351432
urls.txt
352433
434+
- uses: actions/upload-artifact@v3
435+
with:
436+
name: 'curl-linux-musl-debian-sid-llvm-riscv64-tool'
437+
retention-days: 5
438+
path: |
439+
curl-*-*-*/bin/curl
440+
urls.txt
441+
353442
linux-musl-debian-sid-gcc-riscv64:
354443
runs-on: ubuntu-latest
355444
steps:
@@ -380,6 +469,14 @@ jobs:
380469
*-*-linux*.*
381470
urls.txt
382471
472+
- uses: actions/upload-artifact@v3
473+
with:
474+
name: 'curl-linux-musl-debian-sid-gcc-riscv64-tool'
475+
retention-days: 5
476+
path: |
477+
curl-*-*-*/bin/curl
478+
urls.txt
479+
383480
linux-musl-alpine-llvm:
384481
runs-on: ubuntu-latest
385482
steps:
@@ -408,6 +505,14 @@ jobs:
408505
*-*-linux*.*
409506
urls.txt
410507
508+
- uses: actions/upload-artifact@v3
509+
with:
510+
name: 'curl-linux-musl-alpine-llvm-x86_64-tool'
511+
retention-days: 5
512+
path: |
513+
curl-*-*-*/bin/curl
514+
urls.txt
515+
411516
linux-musl-alpine-gcc:
412517
runs-on: ubuntu-latest
413518
steps:
@@ -436,6 +541,14 @@ jobs:
436541
*-*-linux*.*
437542
urls.txt
438543
544+
- uses: actions/upload-artifact@v3
545+
with:
546+
name: 'curl-linux-musl-alpine-gcc-x86_64-tool'
547+
retention-days: 5
548+
path: |
549+
curl-*-*-*/bin/curl
550+
urls.txt
551+
439552
linux-musl-from-mac:
440553
runs-on: macos-latest
441554
steps:
@@ -456,6 +569,14 @@ jobs:
456569
*-*-linux*.*
457570
urls.txt
458571
572+
- uses: actions/upload-artifact@v3
573+
with:
574+
name: 'curl-linux-musl-from-mac-x86_64-tool'
575+
retention-days: 5
576+
path: |
577+
curl-*-*-*/bin/curl
578+
urls.txt
579+
459580
mac-clang:
460581
runs-on: macos-latest
461582
steps:
@@ -476,6 +597,14 @@ jobs:
476597
*-*-macos*.*
477598
urls.txt
478599
600+
- uses: actions/upload-artifact@v3
601+
with:
602+
name: 'curl-macos-universal-clang-tool'
603+
retention-days: 5
604+
path: |
605+
curl-*-universal-*/bin/curl
606+
urls.txt
607+
479608
mac-llvm:
480609
runs-on: macos-latest
481610
steps:
@@ -496,6 +625,14 @@ jobs:
496625
*-*-macos*.*
497626
urls.txt
498627
628+
- uses: actions/upload-artifact@v3
629+
with:
630+
name: 'curl-macos-universal-llvm-tool'
631+
retention-days: 5
632+
path: |
633+
curl-*-universal-*/bin/curl
634+
urls.txt
635+
499636
win-llvm:
500637
runs-on: ubuntu-latest
501638
steps:
@@ -530,6 +667,14 @@ jobs:
530667
*-*-mingw*.*
531668
urls.txt
532669
670+
- uses: actions/upload-artifact@v3
671+
with:
672+
name: 'curl-windows-llvm-tool'
673+
retention-days: 5
674+
path: |
675+
curl-*-*-*/bin/curl.exe
676+
urls.txt
677+
533678
win-gcc:
534679
runs-on: ubuntu-latest
535680
steps:
@@ -563,3 +708,11 @@ jobs:
563708
path: |
564709
*-*-mingw*.*
565710
urls.txt
711+
712+
- uses: actions/upload-artifact@v3
713+
with:
714+
name: 'curl-windows-gcc-noarm64-tool'
715+
retention-days: 5
716+
path: |
717+
curl-*-*-*/bin/curl.exe
718+
urls.txt

0 commit comments

Comments
 (0)