default: ""
build-shared:
default: true
+ type: boolean
build-static:
default: true
+ type: boolean
outputs:
shared-build-dir:
description: build directory of the shared build
steps:
- name: Shared build
id: shared-build
+ # Boolean inputs are actually strings:
+ # https://github.com/actions/runner/issues/1483
+ if: inputs.build-shared == '' || inputs.build-shared == 'true'
shell: bash
run: |
echo "::group::Shared build"
- if [[ "${{ inputs.build-shared }}" != "true" ]]; then exit 0; fi
${{ inputs.configure-env }} ./configure.sh ${{ inputs.configure-config }} \
--prefix=$(pwd)/build-shared/install --werror --name=build-shared
- name: Static build
id: static-build
+ # Boolean inputs are actually strings:
+ # https://github.com/actions/runner/issues/1483
+ if: inputs.build-static == '' || inputs.build-static == 'true'
shell: bash
run: |
echo "::group::Static build"
- if [[ "${{ inputs.build-static }}" != "true" ]]; then exit 0; fi
${{ inputs.configure-env }} ./configure.sh ${{ inputs.configure-config }} \
--prefix=$(pwd)/build-static/install --werror --static --name=build-static --no-java-bindings
with:
configure-env: ${{ matrix.env }}
configure-config: ${{ matrix.config }}
+ build-shared: ${{ matrix.build-shared }}
+ build-static: ${{ matrix.build-static }}
- name: ccache Statistics
run: ccache -s