Reuse common syscall error status objects instead of allocating new o… #8049
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: CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "docs/**" | |
- "website/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Mount Bazel cache | |
uses: actions/cache@v4 | |
with: | |
path: "/home/runner/repo-cache/" | |
key: repo-cache | |
- name: Build | |
run: | | |
bazelisk build \ | |
--config=ci \ | |
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \ | |
//... | |
- name: Test | |
run: | | |
bazelisk test \ | |
--config=ci \ | |
--remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} \ | |
//... | |
- name: Slack | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
fields: all | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUILDBUDDY_GITHUB_USER_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_WEBHOOK_URL }} | |
if: always() |