File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : clang-format-and-lint
1+ name : CI
22
33on :
4+ push :
5+ branches : ["main"]
46 pull_request :
57 branches : ["main"]
6- paths :
7- [
8- " **.c" ,
9- " **.cpp" ,
10- " **.h" ,
11- " **.hpp" ,
12- " **.cxx" ,
13- " **.hxx" ,
14- " **.cc" ,
15- " **.hh" ,
16- " **CMakeLists.txt" ,
17- " meson.build" ,
18- " **.cmake" ,
19- ]
208
219jobs :
22- clang-format-and-lint :
10+ build-and-test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v6
14+
15+ - uses : bazel-contrib/setup-bazel@0.18.0
16+ with :
17+ bazelisk-cache : true
18+ disk-cache : ${{ github.workflow }}
19+ repository-cache : true
20+
21+ - name : Build
22+ run : bazel build //...
23+
24+ - name : Test
25+ run : bazel test //test/...
26+
27+ lint :
2328 runs-on : ubuntu-latest
2429 steps :
2530 - uses : actions/checkout@v6
2631
2732 - uses : bazel-contrib/setup-bazel@0.18.0
2833 with :
29- # Avoid downloading Bazel every time.
3034 bazelisk-cache : true
31- # Store build cache per workflow.
3235 disk-cache : ${{ github.workflow }}
33- # Share repository cache between workflows.
3436 repository-cache : true
3537
3638 - name : Build compilation database
Original file line number Diff line number Diff line change 1+ name : ' Lint PR Title'
2+
3+ on :
4+ pull_request_target :
5+ types :
6+ - opened
7+ - edited
8+ - synchronize
9+
10+ permissions : # added using https://github.com/step-security/secure-workflows
11+ contents : read
12+
13+ jobs :
14+ main :
15+ permissions :
16+ pull-requests : read # for amannn/action-semantic-pull-request to analyze PRs
17+ statuses : write # for amannn/action-semantic-pull-request to mark status of analyzed PR
18+ name : Validate PR title
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : amannn/action-semantic-pull-request@ac7e3fc035c47465748bbcb1a822c1583cf79bbc
22+ env :
23+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ release-please :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ pull-requests : write
16+ issues : write
17+
18+ # Release-please creates a PR that tracks all changes
19+ steps :
20+ - uses : googleapis/release-please-action@v4
21+ with :
22+ token : ${{ secrets.RELEASE_PLEASE_ACTION_TOKEN }}
23+
24+ # TODO: publishing goes here
25+ # publish:
26+ # environment: publish
27+ # runs-on: ubuntu-latest
28+ # permissions:
29+ # contents: read
30+ # needs: release-please
31+ # if: ${{ fromJSON(needs.release-please.outputs.release_created || false) }}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ git submodule update --init --recursive
3131
3232and run tests with,
3333```
34-
34+ bazel test //test/...
3535```
3636
3737### Opening a Pull Request
Original file line number Diff line number Diff line change 1+ # This file intentionally left empty.
2+ # This project uses Bzlmod (MODULE.bazel) for dependency management.
You can’t perform that action at this time.
0 commit comments