penguin/tinyproxy

An L4 proxy designed to act as a tiny transparent shim

commit bd4eb7a5459ed99f76c5611c09c945231d4a30ee

author斟酌 鵬兄 <tgckpg@gmail.com>
date2026-05-27T08:42:52Z
subjectFixed github workflow
commit bd4eb7a5459ed99f76c5611c09c945231d4a30ee
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2026-05-27T08:42:52Z

    Fixed github workflow
---
 .github/workflows/cmake-multi-platform.yml | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
index 120174c..5cb321a 100644
--- a/.github/workflows/cmake-multi-platform.yml
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -53,22 +53,31 @@ jobs:
         name: Test
         run: make test
 
-      - &package_unix
-        name: Package artifact
+      - &package_name
+        name: Set package names
+        shell: bash
         run: |
           os="$(printf '%s' '${{ runner.os }}' | tr '[:upper:]' '[:lower:]')"
           arch="$(printf '%s' '${{ runner.arch }}' | tr '[:upper:]' '[:lower:]')"
+
+          echo "TINYPROXY_PACKAGE=tinyproxy-${os}-${arch}" >> "$GITHUB_ENV"
+
+      - &package_unix
+        name: Package artifact
+        shell: bash
+        run: |
           mkdir -p dist/tinyproxy
           cp bin/tinyproxy dist/tinyproxy/
           cp tinyproxy.conf dist/tinyproxy/
-          tar -C dist -czf tinyproxy-${os}-${arch}.tar.gz tinyproxy
+
+          tar -C dist -czf "${TINYPROXY_PACKAGE}.tar.gz" tinyproxy
 
       - &upload_unix
         name: Upload artifact
         uses: actions/upload-artifact@v4
         with:
-          name: tinyproxy-${{ runner.os }}-${{ runner.arch }}
-          path: tinyproxy-${{ runner.os }}-${{ runner.arch }}.tar.gz
+          name: ${{ env.TINYPROXY_PACKAGE }}
+          path: ${{ env.TINYPROXY_PACKAGE }}.tar.gz
           if-no-files-found: error
           retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
 
@@ -90,6 +99,7 @@ jobs:
       - *build_static
       - *verify_static
       - *test
+      - *package_name
       - *package_unix
       - *upload_unix
 
@@ -109,6 +119,7 @@ jobs:
         run: make clean all STATIC=0
 
       - *test
+      - *package_name
       - *package_unix
       - *upload_unix