Skip to content

Commit f45e6c5

Browse files
committed
fix: download clens binary from clens-client instead of building from source
1 parent eeefca7 commit f45e6c5

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/clens.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,23 @@ jobs:
6464
runs-on: ubuntu-latest
6565

6666
steps:
67-
- name: 📦 Check out clens source
68-
uses: actions/checkout@v4
69-
with:
70-
repository: clouddrove/clens-client
71-
ref: master
72-
73-
- name: 🐹 Set up Go
74-
uses: actions/setup-go@v5
75-
with:
76-
go-version: '1.23'
77-
78-
- name: 🔨 Build clens
67+
- name: 📥 Download clens binary
68+
env:
69+
GH_TOKEN: ${{ github.token }}
7970
run: |
80-
cd client
81-
go build -buildvcs=false -o ../clens .
71+
RUN_ID=$(gh run list \
72+
--repo clouddrove/clens-client \
73+
--workflow ci.yml \
74+
--status success \
75+
--limit 1 \
76+
--json databaseId \
77+
-q '.[0].databaseId')
78+
gh run download "$RUN_ID" \
79+
--repo clouddrove/clens-client \
80+
--name clens-linux-amd64 \
81+
-D ./bin
82+
mv ./bin/clens-linux-amd64 ./clens
83+
chmod +x ./clens
8284
8385
- name: 🚀 Run clens
8486
env:

0 commit comments

Comments
 (0)