-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8bacb6
commit c9da659
Showing
9 changed files
with
60 additions
and
88 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
if: ${{ github.repository == 'Netflix/spectator-cpp' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
CC: "gcc-11" | ||
CXX: "g++-11" | ||
LANG: "en_US.UTF-8" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Bazel Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/bazel | ||
key: ${{ runner.os }}-bazel | ||
|
||
- name: Install System Dependencies | ||
run: | | ||
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg | ||
sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ | ||
echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | ||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-get update && sudo apt-get install -y bazel binutils-dev g++-11 | ||
- name: Build spectator-cpp | ||
run: | | ||
bazel --output_user_root=~/.cache/bazel --batch build --config asan spectator_test spectator | ||
- name: Test spectator-cpp | ||
run: | | ||
GTEST_COLOR=1 ./bazel-bin/spectator_test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
CMakeCache.txt | ||
CMakeFiles/ | ||
CTestTestfile.cmake | ||
Makefile | ||
cmake_install.cmake | ||
bazel-* | ||
build-* | ||
node_modules/ | ||
npm-debug.log | ||
.newt.netflix_environment.sh | ||
cmake-build-* | ||
logs/ | ||
.clwb/ | ||
.idea/ | ||
.vscode/ | ||
.clwb | ||
compile_commands.json | ||
bazel-* | ||
build-* |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
bazel --output_user_root=$HOME/.cache/bazel --batch build --config asan spectator_test spectator | ||
GTEST_COLOR=1 ./bazel-bin/spectator_test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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