libjxl

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

test_new_highway.yml (2075B)


      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: Update branches with updated submodule on libjxl
      9 
     10 on:
     11   workflow_dispatch:
     12   schedule:
     13     - cron: '37 2 * * *' # Daily on 02:37 UTC
     14 
     15 permissions:
     16   contents: read
     17 
     18 jobs:
     19   update:
     20     if: github.repository_owner == 'libjxl'
     21     runs-on: ubuntu-latest
     22     strategy:
     23       matrix:
     24         include:
     25           - branch: 'test_highway'
     26             tag: 'origin/master'
     27           - branch: 'test_highway_1.0.7'
     28             tag: '1.0.7'
     29 
     30     steps:
     31       - name: Harden Runner
     32         uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
     33         with:
     34           egress-policy: audit
     35 
     36       - name: 'Cloning libjxl'
     37         uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
     38         with:
     39           submodules: recursive
     40           persist-credentials: false # otherwise, the wrong auhtentication is used in the push
     41           fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
     42       - name: Pull & update highway
     43         working-directory: ./third_party/highway
     44         run: |
     45           git fetch origin
     46           git checkout ${{ matrix.tag }}
     47       - name: Update deps.sh
     48         run: |
     49           NEWHASH=`git submodule status third_party/highway | cut -d' ' -f1 | cut -c2-`
     50           sed -i "s/\(THIRD_PARTY_HIGHWAY=\"\)[^\"]*/\1$NEWHASH/" deps.sh
     51       - name: Commit
     52         run: |
     53           git config user.email "firsching@google.com"
     54           git config user.name "GitHub Actions - update submodules"
     55           git add --all
     56           git commit -m "Update highway submodule" || echo "No changes to commit"
     57 
     58       - name: Push changes
     59         uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
     60         with:
     61           github_token: ${{ secrets.TOKEN }}
     62           branch: 'refs/heads/${{ matrix.branch }}'
     63           force: true