Skip to content

Commit fbd52a6

Browse files
committed
ci: upload binaries as github artifacts
Signed-off-by: CrazyMax <[email protected]>
1 parent 53f9371 commit fbd52a6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ jobs:
7474
fail-fast: false
7575
matrix:
7676
include: ${{ fromJson(needs.prepare-binaries.outputs.includes) }}
77+
env:
78+
DESTDIR: ./bin
7779
steps:
80+
- name: Prepare
81+
run: |
82+
platform=${{ matrix.platforms }}
83+
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
84+
7885
- name: Checkout
7986
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
8087
with:
@@ -91,6 +98,13 @@ jobs:
9198
set: |
9299
*.platform=${{ matrix.platforms }}
93100
101+
- name: Upload artifacts
102+
uses: actions/upload-artifact@v4
103+
with:
104+
name: cagent-${{ env.PLATFORM_PAIR }}
105+
path: ${{ env.DESTDIR }}/*
106+
if-no-files-found: error
107+
94108
build-image:
95109
needs:
96110
- validate

0 commit comments

Comments
 (0)