Skip to content

Commit 6cce62d

Browse files
committed
Select gcc binaries to release
1 parent 25a0608 commit 6cce62d

File tree

2 files changed

+80
-132
lines changed

2 files changed

+80
-132
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
--with-oniguruma=builtin \
3939
YACC="$(which bison) -y"
4040
make
41-
cp jq jq-${{ env.SUFFIX }}
4241
- name: Test
4342
run: |
4443
make check
@@ -58,7 +57,7 @@ jobs:
5857
if-no-files-found: error
5958
retention-days: 7
6059
path: |
61-
jq-${{ env.SUFFIX }}
60+
jq
6261
macos:
6362
strategy:
6463
fail-fast: false
@@ -95,7 +94,6 @@ jobs:
9594
--with-oniguruma=builtin \
9695
YACC="$(brew --prefix)/opt/bison/bin/bison -y"
9796
make
98-
cp jq jq-${{ env.SUFFIX }}
9997
- name: Test
10098
run: |
10199
make check
@@ -115,7 +113,7 @@ jobs:
115113
if-no-files-found: error
116114
retention-days: 7
117115
path: |
118-
jq-${{ env.SUFFIX }}
116+
jq
119117
windows:
120118
strategy:
121119
fail-fast: false
@@ -157,7 +155,6 @@ jobs:
157155
--enable-all-static \
158156
YACC="$(which bison) -y"
159157
make
160-
cp jq.exe jq-${{ env.SUFFIX }}.exe
161158
- name: Test
162159
shell: msys2 {0}
163160
run: |
@@ -178,7 +175,7 @@ jobs:
178175
if-no-files-found: error
179176
retention-days: 7
180177
path: |
181-
jq-${{ env.SUFFIX }}.exe
178+
jq.exe
182179
release:
183180
runs-on: ubuntu-latest
184181
permissions:
@@ -199,5 +196,10 @@ jobs:
199196
TAG_NAME: ${{ github.ref_name }}
200197
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201198
run: |
199+
mkdir release
200+
cp artifacts/jq-linux-ubuntu-22.04-gcc/jq release/jq-linux-amd64
201+
cp artifacts/jq-macos-macos-13-gcc/jq release/jq-macos-amd64
202+
cp artifacts/jq-windows-windows-2022-gcc/jq.exe release/jq-windows-amd64.exe
203+
202204
gh release create $TAG_NAME --draft --title "jq ${TAG_NAME#v}" --generate-notes
203-
gh release upload $TAG_NAME --clobber artifacts/jq-*/*
205+
gh release upload $TAG_NAME --clobber release/jq-*

0 commit comments

Comments
 (0)