Skip to content

Bump actions/cache from 4.1.2 to 4.2.0 #164

Bump actions/cache from 4.1.2 to 4.2.0

Bump actions/cache from 4.1.2 to 4.2.0 #164

# 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
git fetch origin 31fbbd7ce1e4179a32d86688cd67316556f582bf
git checkout 31fbbd7ce1e4179a32d86688cd67316556f582bf
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