Skip to content

Commit

Permalink
feat: add github actions pipelines (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: Thulio Ferraz Assis <[email protected]>
  • Loading branch information
f0rmiga authored Jun 23, 2022
1 parent b1aa9d9 commit c2d2af3
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .fasterci/config.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/.bazelrc.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
build --keep_going

# Remote cache
build --bes_backend=grpcs://tourmaline.cluster.engflow.com
build --bes_results_url=https://tourmaline.cluster.engflow.com/invocation/
build --remote_cache=grpcs://tourmaline.cluster.engflow.com
build --remote_download_toplevel
build --remote_timeout=3600
build --remote_upload_local_results
build --tls_client_certificate=tourmaline-client.crt
build --tls_client_key=tourmaline-client.key

# Remote build execution
build:rbe --extra_execution_platforms=//platforms:x86_64_linux_remote
build:rbe --genrule_strategy=remote
build:rbe --host_platform=//platforms:x86_64_linux_remote
build:rbe --jobs=32
build:rbe --remote_executor=grpcs://tourmaline.cluster.engflow.com
92 changes: 92 additions & 0 deletions .github/workflows/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Default

on:
push:
branches: [master]
pull_request:
types: [labeled]

# Allows manually triggering this workflow from the Actions tab.
workflow_dispatch:

jobs:
test:
if: ${{ github.event.label.name == 'ci-test' }}
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
compilation_mode:
- fastbuild
- dbg
- opt
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- run: |-
set -o errexit -o nounset -o pipefail
cp .github/workflows/.bazelrc.ci .bazelrc.user
echo "${ENGFLOW_CLIENT_CRT}" > tourmaline-client.crt
chmod 0600 tourmaline-client.crt
echo "${ENGFLOW_PRIVATE_KEY}" > tourmaline-client.key
chmod 0600 tourmaline-client.key
env:
ENGFLOW_CLIENT_CRT: ${{ secrets.ENGFLOW_CLIENT_CRT }}
ENGFLOW_PRIVATE_KEY: ${{ secrets.ENGFLOW_PRIVATE_KEY }}
- name: Test
run: |-
bazel test \
--compilation_mode ${{ matrix.compilation_mode }} \
//...
sanitizers:
if: ${{ github.event.label.name == 'ci-test' }}
strategy:
matrix:
sanitizer:
- asan
- lsan
- tsan
- ubsan
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- run: |-
set -o errexit -o nounset -o pipefail
cp .github/workflows/.bazelrc.ci .bazelrc.user
echo "${ENGFLOW_CLIENT_CRT}" > tourmaline-client.crt
chmod 0600 tourmaline-client.crt
echo "${ENGFLOW_PRIVATE_KEY}" > tourmaline-client.key
chmod 0600 tourmaline-client.key
env:
ENGFLOW_CLIENT_CRT: ${{ secrets.ENGFLOW_CLIENT_CRT }}
ENGFLOW_PRIVATE_KEY: ${{ secrets.ENGFLOW_PRIVATE_KEY }}
- name: Test ${{ matrix.sanitizer }}
run: |-
bazel test \
--config ${{ matrix.sanitizer }} \
//tests/sanitizers:${{ matrix.sanitizer }}_test
rbe:
if: ${{ github.event.label.name == 'ci-test' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v1
- run: |-
set -o errexit -o nounset -o pipefail
cp .github/workflows/.bazelrc.ci .bazelrc.user
echo "${ENGFLOW_CLIENT_CRT}" > tourmaline-client.crt
chmod 0600 tourmaline-client.crt
echo "${ENGFLOW_PRIVATE_KEY}" > tourmaline-client.key
chmod 0600 tourmaline-client.key
env:
ENGFLOW_CLIENT_CRT: ${{ secrets.ENGFLOW_CLIENT_CRT }}
ENGFLOW_PRIVATE_KEY: ${{ secrets.ENGFLOW_PRIVATE_KEY }}
- name: Test with RBE
run: |-
bazel test \
--config rbe \
//...
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.bazelrc.user
bazel-*
*.crt
*.key

0 comments on commit c2d2af3

Please sign in to comment.