From 208d829cb85a1da7e8343f562486ba14ab634984 Mon Sep 17 00:00:00 2001 From: cjcchen Date: Mon, 6 Jan 2025 14:47:43 +0800 Subject: [PATCH] add gcc (#167) * add gcc * add gcc * add gcc * add gcc * add gcc * add gcc * add gcc * add gcc --------- Co-authored-by: cjcchen --- .github/workflows/build.yml | 13 ++++++++++--- .github/workflows/ut.yml | 11 ++++++++++- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1d27b4cf..d4cbdf802 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,12 +34,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Mount bazel cache uses: actions/cache@v3 with: path: "/home/runner/.cache/bazel" key: bazel - + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' - name: build - run: bazel build ... + shell: bash + env: + CC: gcc-11 + CXX: g++-11 + run: | + bazel build ... diff --git a/.github/workflows/ut.yml b/.github/workflows/ut.yml index 376bc7f85..fd40b2a19 100644 --- a/.github/workflows/ut.yml +++ b/.github/workflows/ut.yml @@ -39,5 +39,14 @@ jobs: with: path: "/home/runner/.cache/bazel" key: bazel + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' - name: build - run: bazel test ... + shell: bash + env: + CC: gcc-11 + CXX: g++-11 + run: | + bazel build ...