Skip to content

Commit 208d829

Browse files
cjcchencjcchen
andauthored
add gcc (#167)
* add gcc * add gcc * add gcc * add gcc * add gcc * add gcc * add gcc * add gcc --------- Co-authored-by: cjcchen <ubuntu@ip-172-31-16-120.ec2.internal>
1 parent 3aa81ae commit 208d829

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,19 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@v1
37-
3837
- name: Mount bazel cache
3938
uses: actions/cache@v3
4039
with:
4140
path: "/home/runner/.cache/bazel"
4241
key: bazel
43-
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: '3.10'
4446
- name: build
45-
run: bazel build ...
47+
shell: bash
48+
env:
49+
CC: gcc-11
50+
CXX: g++-11
51+
run: |
52+
bazel build ...

.github/workflows/ut.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,14 @@ jobs:
3939
with:
4040
path: "/home/runner/.cache/bazel"
4141
key: bazel
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: '3.10'
4246
- name: build
43-
run: bazel test ...
47+
shell: bash
48+
env:
49+
CC: gcc-11
50+
CXX: g++-11
51+
run: |
52+
bazel build ...

0 commit comments

Comments
 (0)