diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /.github/workflows/build-linux-sanitizers.yml | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to '.github/workflows/build-linux-sanitizers.yml')
| -rw-r--r-- | .github/workflows/build-linux-sanitizers.yml | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/.github/workflows/build-linux-sanitizers.yml b/.github/workflows/build-linux-sanitizers.yml new file mode 100644 index 00000000..1db5293e --- /dev/null +++ b/.github/workflows/build-linux-sanitizers.yml @@ -0,0 +1,93 @@ +name: Build Linux Sanitizers + +on: + workflow_call: + inputs: + hamlib_branch: + description: "Hamlib version baked into the CI image" + required: false + type: string + default: "4.7.2" + sanitizer: + description: "Sanitizer mode: asan-ubsan or tsan" + required: true + type: string + image_tag: + description: "Immutable GHCR image tag; empty resolves the current validated generation" + required: false + type: string + default: "" + recache: + description: "Force ccache to recompile" + required: false + type: boolean + default: false + save_ccache: + description: "Save compiled objects for trusted builds" + required: false + type: boolean + default: false + advisory: + description: "Allow sanitizer failures without failing the caller" + required: false + type: boolean + default: false + allow_stale_image: + description: "Allow a previously promoted image when a dependency refresh changed the recipe" + required: false + type: boolean + default: false + +permissions: + contents: read + packages: read + +jobs: + resolve-image: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + outputs: + image_tag: ${{ steps.resolve.outputs.image_tag }} + steps: + - uses: actions/checkout@v7 + - id: resolve + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REQUESTED_TAG: ${{ inputs.image_tag }} + RESOLVE_TSAN: ${{ inputs.sanitizer == 'tsan' }} + shell: bash + run: | + if [ -n "$REQUESTED_TAG" ]; then + IMAGE_TAG="$REQUESTED_TAG" .github/scripts/validate-ci-inputs.sh + echo "image_tag=$REQUESTED_TAG" >> "$GITHUB_OUTPUT" + elif [ "$RESOLVE_TSAN" = true ]; then + RESOLVE_TSAN=true .github/scripts/resolve-linux-ci-image-tag.py + else + .github/scripts/resolve-linux-ci-image-tag.py + fi + + build: + needs: resolve-image + name: ${{ inputs.sanitizer == 'tsan' && 'Linux x86_64 TSan' || 'Linux x86_64 ASan + UBSan' }} + runs-on: ubuntu-24.04 + timeout-minutes: ${{ inputs.sanitizer == 'tsan' && 180 || 40 }} + continue-on-error: ${{ inputs.advisory }} + container: + image: ${{ inputs.sanitizer == 'tsan' && format('ghcr.io/wsjtx/wsjtx-internal/linux-tsan-noble:{0}', needs.resolve-image.outputs.image_tag) || format('ghcr.io/wsjtx/wsjtx-internal/linux-noble:{0}', needs.resolve-image.outputs.image_tag) }} + credentials: + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v7 + - name: Validate workflow inputs + env: + HAMLIB_BRANCH: ${{ inputs.hamlib_branch }} + IMAGE_TAG: ${{ needs.resolve-image.outputs.image_tag }} + run: .github/scripts/validate-ci-inputs.sh + - uses: ./.github/actions/build-linux-sanitizers + with: + hamlib_branch: ${{ inputs.hamlib_branch }} + sanitizer: ${{ inputs.sanitizer }} + recache: ${{ inputs.recache }} + save_ccache: ${{ inputs.save_ccache }} + allow_stale_image: ${{ inputs.allow_stale_image }} |
