Prevent ABI problems incompatibility on GCC + Arm (#4059) #184
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) the JPEG XL Project Authors. All rights reserved. | |
# | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
# Workflow for building and running tests. | |
name: Build/Test Bazel | |
on: | |
merge_group: | |
push: | |
branches: | |
- main | |
- v*.*.x | |
pull_request: | |
types: [opened, reopened, labeled, unlabeled, synchronize] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
build_test: | |
name: Bazel | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'CI:none') }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout the source | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Patch | |
run: | | |
cd third_party/highway | |
# TODO(eustas): stick to deps.sh commit | |
git fetch origin 457c891775a7397bdb0376bb1031e6e027af1c48 | |
git checkout 457c891775a7397bdb0376bb1031e6e027af1c48 | |
git apply ${{ github.workspace }}/.github/workflows/highway.patch | |
- name: Build | |
run: bazel build -c opt ...:all | |
- name: Test | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'pull_request' && | |
contains(github.event.pull_request.labels.*.name, 'CI:full')) | |
run: bazel test -c opt --test_output=errors ...:all |