Skip to content

Commit

Permalink
Update CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn committed Dec 16, 2024
1 parent eed03bd commit 14039bf
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 37 deletions.
92 changes: 55 additions & 37 deletions .github/workflows/bazel_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ on:
push: {}

jobs:
# build_and_test_ubuntu20:
# name: Linux Ubuntu 20.04 build <GCC 9.4.0>
# runs-on: ubuntu-20.04
build_and_test_ubuntu20:
name: Linux Ubuntu 20.04 build <GCC 9.4.0>
runs-on: ubuntu-20.04

# steps:
# - uses: actions/checkout@v3
steps:
- uses: actions/checkout@v4.2.2

# - name: Mount bazel cache
# uses: actions/cache@v3
# with:
# path: "/home/runner/.cache/bazel"
# key: bazel
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel

# - name: Build
# run: |
# cd tests
# bazelisk build --config=gcc9 //...
- name: Build
run: |
cd tests
bazelisk build --config=gcc9 //...
build_and_test_ubuntu22:
name: Linux Ubuntu 22.04 build <GCC 11.3.0>
name: Linux Ubuntu 22.04 build <GCC 11.4.0>
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.2.2

- name: Mount bazel cache
uses: actions/cache@v3
Expand All @@ -41,30 +41,48 @@ jobs:
cd tests
bazelisk build --config=gcc11 //...
# build_and_test_windows10:
# name: Windows Server 2019 build <Visual Studio 2019>
# runs-on: windows-2019
build_and_test_ubuntu24:
name: Linux Ubuntu 24.04 build <GCC 13.2.0>
runs-on: ubuntu-24.04

# steps:
# - uses: actions/checkout@v3
steps:
- uses: actions/checkout@v4.2.2

# - name: Mount bazel cache
# uses: actions/cache@v3
# with:
# path: "/home/runner/.cache/bazel"
# key: bazel
- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel-ubuntu24

# - name: Build
# run: |
# cd tests
# bazelisk build --config=vs2019 //...
- name: Build
run: |
cd tests
bazelisk build --config=gcc13 //...
build_and_test_windows10:
name: Windows Server 2019 build <Visual Studio 2019>
runs-on: windows-2019

steps:
- uses: actions/[email protected]

- name: Mount bazel cache
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazel

- name: Build
run: |
cd tests
bazelisk build --config=vs2019 //...
build_and_test_windows11:
name: Windows Server 2022 build <Visual Studio 2022>
runs-on: windows-2022

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.2.2

- name: Mount bazel cache
uses: actions/cache@v3
Expand All @@ -82,7 +100,7 @@ jobs:
# runs-on: macOS-11

# steps:
# - uses: actions/checkout@v3
# - uses: actions/checkout@v4.2.2

# - name: Mount bazel cache
# uses: actions/cache@v3
Expand Down Expand Up @@ -110,7 +128,7 @@ jobs:
# runs-on: macOS-12

# steps:
# - uses: actions/checkout@v3
# - uses: actions/checkout@v4.2.2

# - name: Mount bazel cache
# uses: actions/cache@v3
Expand All @@ -133,12 +151,12 @@ jobs:
# cd tests
# bazelisk build --config=macos //...

build_and_test_macos13:
name: macOS 13 Bazel build <Apple Clang14>
runs-on: macOS-13
build_and_test_macos14:
name: macOS 14 Bazel build <Apple Clang14>
runs-on: macOS-14

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4.2.2

- name: Mount bazel cache
uses: actions/cache@v3
Expand Down
6 changes: 6 additions & 0 deletions tests/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ build:gcc11 --cxxopt=-Wall
#build:gcc11 --cxxopt=-Wno-error=volatile # blocked by emsdk
##build:gcc11 --cxxopt=-Wextra

# GCC 13
build:gcc13 --cxxopt=-std=c++20
build:gcc13 --cxxopt=-Wall
build:gcc13 --define compiler=gcc13
build:gcc13 --cxxopt=-fpermissive # Needed for fmt

# Visual Studio 2019
build:vs2019 --cxxopt=/std:c++20
build:vs2019 --cxxopt=/Zc:__cplusplus # Untested
Expand Down

0 comments on commit 14039bf

Please sign in to comment.