Bump softprops/action-gh-release from 1 to 2 #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bazel | |
on: | |
pull_request: {} | |
push: {} | |
jobs: | |
build_and_test_ubuntu20: | |
name: Linux Ubuntu 20.04 build <GCC 9.4.0> | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- 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: Run | |
run: | | |
cd tests | |
bazelisk run --config=gcc9 //square:main | |
build_and_test_ubuntu22: | |
name: Linux Ubuntu 22.04 build <GCC 11.3.0> | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel-ubuntu22 | |
- name: Build | |
run: | | |
cd tests | |
bazelisk build --config=gcc11 //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=gcc11 //square:main | |
build_and_test_windows10: | |
name: Windows Server 2019 build <Visual Studio 2019> | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=vs2019 //square:main | |
build_and_test_windows11: | |
name: Windows Server 2022 build <Visual Studio 2022> | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Build | |
run: | | |
cd tests | |
bazelisk build --config=vs2022 //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=vs2022 //square:main | |
build_and_test_macos11: | |
name: macOS 11 Bazel build <Apple Clang13> | |
runs-on: macOS-11 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Print info | |
run: | | |
echo "OS info:" | |
sw_vers | |
uname | |
echo "Compiler info:" | |
clang --version | |
- name: Build | |
run: | | |
cd tests | |
bazelisk build --config=macos //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=macos //square:main | |
build_and_test_macos12: | |
name: macOS 12 Bazel build <Apple Clang14> | |
runs-on: macOS-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Print info | |
run: | | |
echo "OS info:" | |
sw_vers | |
uname | |
echo "Compiler info:" | |
clang --version | |
- name: Build | |
run: | | |
cd tests | |
bazelisk build --config=macos //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=macos //square:main | |
build_and_test_macos13: | |
name: macOS 13 Bazel build <Apple Clang14> | |
runs-on: macOS-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "/home/runner/.cache/bazel" | |
key: bazel | |
- name: Print info | |
run: | | |
echo "OS info:" | |
sw_vers | |
uname | |
echo "Compiler info:" | |
clang --version | |
- name: Ispc | |
run: | | |
brew install ispc | |
ispc --version | |
ispc --support-matrix | |
- name: Build | |
run: | | |
cd tests | |
bazelisk build --config=macos //... | |
- name: Run | |
run: | | |
cd tests | |
bazelisk run --config=macos //square:main |