-
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,398 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 |
35 changes: 35 additions & 0 deletions
35
.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,35 @@ | ||
name: Reusable workflow example | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
outputs: | ||
cache_key: | ||
description: "The first output string" | ||
value: ${{ jobs.build_cache_key.outputs.cache_key }} | ||
|
||
jobs: | ||
build_cache_key: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
cache_key: ${{ steps.cache_key.outputs.cache_key }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
submodules: true | ||
|
||
- name: Generate cache key | ||
id: cache_key | ||
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/build_cache_key.yml') }} | ||
important_files=${important_files}-${{ hashFiles('.github/workflows/test.yml') }} | ||
echo "cache_key=$important_files" >> "$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.