Skip to content

Commit

Permalink
add ci (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
cj81499 authored Aug 23, 2024
1 parent 4c51808 commit 2a9d9b8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import %workspace%/.aspect/bazelrc/performance.bazelrc

### YOUR PROJECT SPECIFIC OPTIONS GO HERE ###

# FIXME: aspect's rules are a good starting point, but I don't like all of 'em.
# I ought to write my own (based on theirs).

# Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`.
# This file should appear in `.gitignore` so that settings are not shared with team members. This
# should be last statement in this config so the user configuration is able to overwrite flags from
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout source tree
uses: actions/[email protected]

- name: Setup bazel/bazelisk
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
external-cache: true
repository-cache: true
# TODO: use --config=ci
# bazelrc: |
# build --config=ci
bazelrc: |
build --color=yes
- name: build
run: bazel build //...

- name: test
run: bazel test //...

0 comments on commit 2a9d9b8

Please sign in to comment.