Skip to content

ci: pin bazel version; bazel 7.0 does not work with us yet #376

ci: pin bazel version; bazel 7.0 does not work with us yet

ci: pin bazel version; bazel 7.0 does not work with us yet #376

name: Build and Test
on:
push:
pull_request:
branches: [master]
jobs:
build_on_ubuntu_20_04:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.9]
cc: [8, 9, 10]
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Dump environment
run: |
uname -a
gcc -v
export
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.cc }} g++-${{ matrix.cc }}
- name: Build
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade build ... -k
- name: Run tests
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade test ...
build_on_ubuntu_22_04:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.9]
cc: [11, 12]
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.cc }} g++-${{ matrix.cc }}
- name: Build
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade build ... -k
- name: Run tests
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade test ...
build_on_ubuntu_24_04:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.9]
cc: [13]
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.cc }} g++-${{ matrix.cc }}
- name: Build
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade build ... -k
- name: Run tests
run: |
CC=gcc-${{ matrix.cc }} CXX=g++-${{ matrix.cc }} ./blade test ...