-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
2,393 additions
and
268 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Enable Bzlmod for every Bazel command | ||
common --enable_bzlmod | ||
common --verbose_failures | ||
common --registry=https://bcr.bazel.build | ||
common --registry=https://raw.githubusercontent.com/ADD-SP/ngx_waf_deps/60efa49539f3b508257cab89f4043ab36407ac86 | ||
|
||
build --compilation_mode=fastbuild | ||
build --strip=never | ||
build --sandbox_debug | ||
|
||
build:release --compilation_mode=opt | ||
build:release --copt="-g3" | ||
build:release --strip=never | ||
build:release --sandbox_debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.1.1 |
30 changes: 30 additions & 0 deletions
30
.github/workflows/reusable_actions/build_cache_key/action.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build Cache Key | ||
|
||
inputs: | ||
extra_key: | ||
description: 'Extra key to append to the cache key' | ||
required: false | ||
default: '' | ||
|
||
outputs: | ||
cache_key: | ||
description: 'The generated cache key' | ||
value: ${{ steps.cache_key.outputs.cache_key }} | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Generate cache key | ||
id: cache_key | ||
shell: bash | ||
run: | | ||
important_files=${{ hashFiles('.bazelrc') }} | ||
important_files=${important_files}-${{ hashFiles('.bazelversion') }} | ||
important_files=${important_files}-${{ hashFiles('BUILD') }} | ||
important_files=${important_files}-${{ hashFiles('MODULE.bazel') }} | ||
important_files=${important_files}-${{ hashFiles('MODULE.bazel.lock') }} | ||
important_files=${important_files}-${{ hashFiles('.github/workflows/reusable_actions/build_cache_key/action.yml') }} | ||
important_files=${important_files}-${{ hashFiles('.github/workflows/test.yml') }} | ||
echo "cache_key=$important_files-${{ inputs.extra_key }}" >> "$GITHUB_OUTPUT" |
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
Oops, something went wrong.