1 parent
44a0f3448a
commit
5ae04c0f52
1 file changed
+13
-9
@@ -6,6 +6,7 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -29,7 +30,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.image }}
|
runs-on: ${{ matrix.image }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
SUFFIX: linux-${{ matrix.image}}-${{ matrix.compiler }}
|
SUFFIX: linux-${{ matrix.image }}-${{ matrix.compiler }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -56,6 +57,7 @@ jobs:
|
|||||||
${{ matrix.configure_flag }} \
|
${{ matrix.configure_flag }} \
|
||||||
YACC="$(which bison) -y"
|
YACC="$(which bison) -y"
|
||||||
make
|
make
|
||||||
|
strip jq
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
make check
|
make check
|
||||||
@@ -74,8 +76,8 @@ jobs:
|
|||||||
name: jq-${{ env.SUFFIX }}
|
name: jq-${{ env.SUFFIX }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
path: |
|
path: jq
|
||||||
jq
|
|
||||||
macos:
|
macos:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -85,7 +87,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.image }}
|
runs-on: ${{ matrix.image }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
SUFFIX: macos-${{ matrix.image}}-${{ matrix.compiler }}
|
SUFFIX: macos-${{ matrix.image }}-${{ matrix.compiler }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -113,6 +115,7 @@ jobs:
|
|||||||
--enable-all-static \
|
--enable-all-static \
|
||||||
YACC="$(brew --prefix)/opt/bison/bin/bison -y"
|
YACC="$(brew --prefix)/opt/bison/bin/bison -y"
|
||||||
make
|
make
|
||||||
|
strip jq
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
make check
|
make check
|
||||||
@@ -131,8 +134,8 @@ jobs:
|
|||||||
name: jq-${{ env.SUFFIX }}
|
name: jq-${{ env.SUFFIX }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
path: |
|
path: jq
|
||||||
jq
|
|
||||||
windows:
|
windows:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -142,7 +145,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.image }}
|
runs-on: ${{ matrix.image }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
SUFFIX: windows-${{ matrix.image}}-${{ matrix.compiler }}
|
SUFFIX: windows-${{ matrix.image }}-${{ matrix.compiler }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -174,6 +177,7 @@ jobs:
|
|||||||
--enable-all-static \
|
--enable-all-static \
|
||||||
YACC="$(which bison) -y"
|
YACC="$(which bison) -y"
|
||||||
make
|
make
|
||||||
|
strip jq.exe
|
||||||
- name: Test
|
- name: Test
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
@@ -193,8 +197,8 @@ jobs:
|
|||||||
name: jq-${{ env.SUFFIX }}
|
name: jq-${{ env.SUFFIX }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
path: |
|
path: jq.exe
|
||||||
jq.exe
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in new issue
Block a user