forked from cherrry/bazel_pkg_config
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 973 Bytes
/
sanity_test.yml
File metadata and controls
43 lines (36 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Sanity Test
on:
push:
branches:
- main
- master
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Setup Ubuntu Native Libs
run: |
sudo apt update
sudo apt install libglib2.0-dev
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
- name: Checkout Test Case Repo
uses: actions/checkout@v4
with:
repository: Lmh-java/bazel_pkg_config_test
- name: Update Commit Hash in Test Cases
run: |
chmod +x ./update_commit_hash.sh
./update_commit_hash.sh ${{ github.sha }}
- name: Run WORKSPACE Test Case
working-directory: ./workspace_test
run: |
bazel run //:main
- name: Run BzlMod Test Case
working-directory: ./bzlmod_test
run: |
bazel run //:main