Skip to content

Commit

Permalink
add tool-only artifacts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vszakats committed Nov 12, 2023
1 parent 675a21e commit dad9f12
Showing 1 changed file with 115 additions and 0 deletions.
115 changes: 115 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions: {}
env:
CW_MAP: '1'
CW_JOBS: '3'
CW_PKG_NODELETE: '1'
DO_NOT_TRACK: '1'
DOCKER_CONTENT_TRUST: '1'

Expand Down Expand Up @@ -56,6 +57,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-testing-llvm-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-glibc-debian-testing-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -84,6 +91,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-testing-gcc-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-glibc-debian-bookworm-llvm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -114,6 +127,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-bookworm-llvm-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-glibc-debian-bookworm-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -144,6 +163,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-bookworm-gcc-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-glibc-debian-sid-llvm-riscv64:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -174,6 +199,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-sid-llvm-riscv64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-glibc-debian-sid-gcc-riscv64:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -204,6 +235,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-glibc-debian-sid-gcc-riscv64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-testing-llvm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -232,6 +269,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-testing-llvm-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-testing-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -260,6 +303,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-testing-gcc-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-bookworm-llvm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -290,6 +339,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-bookworm-llvm-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-bookworm-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -320,6 +375,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-bookworm-gcc-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-sid-llvm-riscv64:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -350,6 +411,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-sid-llvm-riscv64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-debian-sid-gcc-riscv64:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -380,6 +447,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-debian-sid-gcc-riscv64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-alpine-llvm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -408,6 +481,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-alpine-llvm-x86_64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-alpine-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -436,6 +515,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-alpine-gcc-x86_64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

linux-musl-from-mac:
runs-on: macos-latest
steps:
Expand All @@ -456,6 +541,12 @@ jobs:
*-*-linux*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-linux-musl-from-mac-x86_64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl

mac-clang:
runs-on: macos-latest
steps:
Expand All @@ -476,6 +567,12 @@ jobs:
*-*-macos*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-macos-universal-clang-tool'
retention-days: 5
path: curl-*-universal-*/bin/curl

mac-llvm:
runs-on: macos-latest
steps:
Expand All @@ -496,6 +593,12 @@ jobs:
*-*-macos*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-macos-universal-llvm-tool'
retention-days: 5
path: curl-*-universal-*/bin/curl

win-llvm:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -530,6 +633,12 @@ jobs:
*-*-mingw*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-windows-llvm-tool'
retention-days: 5
path: curl-*-*-*/bin/curl.exe

win-gcc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -563,3 +672,9 @@ jobs:
path: |
*-*-mingw*.*
urls.txt
- uses: actions/upload-artifact@v3
with:
name: 'curl-windows-gcc-noarm64-tool'
retention-days: 5
path: curl-*-*-*/bin/curl.exe

0 comments on commit dad9f12

Please sign in to comment.