libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

build_test_bazel.yml (1614B)


      1 # Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 #
      3 # Use of this source code is governed by a BSD-style
      4 # license that can be found in the LICENSE file.
      5 
      6 # Workflow for building and running tests.
      7 
      8 name: Build/Test Bazel
      9 on:
     10   merge_group:
     11   push:
     12     branches:
     13       - main
     14       - v*.*.x
     15   pull_request:
     16     types: [opened, reopened, labeled, synchronize]
     17 
     18 permissions:
     19   contents: read
     20 
     21 concurrency:
     22   group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
     23   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
     24 
     25 jobs:
     26   build_test:
     27     name: Bazel
     28     runs-on: ubuntu-latest
     29     strategy:
     30       fail-fast: false
     31 
     32     steps:
     33       - name: Harden Runner
     34         uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
     35         with:
     36           egress-policy: audit
     37 
     38       - name: Checkout the source
     39         uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
     40         with:
     41           submodules: true
     42           fetch-depth: 1
     43 
     44       - name: Patch
     45         run: |
     46           cd third_party/highway
     47           git fetch origin 31fbbd7ce1e4179a32d86688cd67316556f582bf
     48           git checkout 31fbbd7ce1e4179a32d86688cd67316556f582bf
     49           git apply ${{ github.workspace }}/.github/workflows/highway.patch
     50       - name: Build
     51         run: bazel build -c opt ...:all
     52       - name: Test
     53         if: |
     54           github.event_name == 'push' ||
     55           (github.event_name == 'pull_request' &&
     56            contains(github.event.pull_request.labels.*.name, 'CI:full'))
     57         run: bazel test -c opt --test_output=errors ...:all