libjxl

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

pull_request.yml (1831B)


      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 to run pull-requests specific checks.
      7 
      8 name: PR
      9 on:
     10   merge_group:
     11   pull_request:
     12     types: [opened, reopened, synchronize]
     13 
     14 permissions:
     15   contents: read
     16 
     17 concurrency:
     18   group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
     19   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
     20 
     21 jobs:
     22   # Checks that the AUTHORS files is updated with new contributors.
     23   authors:
     24     runs-on: [ubuntu-latest]
     25     steps:
     26     - name: Harden Runner
     27       uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
     28       with:
     29         egress-policy: audit
     30 
     31     - name: Checkout the source
     32       uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
     33     - name: Check AUTHORS file
     34       # This is an optional check
     35       continue-on-error: True
     36       run:
     37         ./ci.sh authors
     38 
     39   format:
     40     runs-on: [ubuntu-latest]
     41     steps:
     42     - name: Harden Runner
     43       uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
     44       with:
     45         egress-policy: audit
     46 
     47     - name: Install build deps
     48       run: |
     49         sudo rm -f /var/lib/man-db/auto-update
     50         sudo apt update
     51         sudo apt install -y \
     52           clang-format \
     53           clang-format-14 \
     54           clang-format-15 \
     55         #
     56     - name: Checkout the source
     57       uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
     58     - name: Install buildifier
     59       run: |
     60         eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
     61         brew install buildifier
     62     - name: lint
     63       run: |
     64         eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
     65         ./ci.sh lint >&2