Our great sponsors
-
virtual-environments
Discontinued GitHub Actions runner images [Moved to: https://github.com/actions/runner-images]
-
sandbox_bazel
explorations of bazel, support for a serie of articles and to experiment stuff on bazel.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
name: CI on: [push, pull_request] jobs: test: # virtual environments: https://github.com/actions/virtual-environments runs-on: ubuntu-20.04 steps: # Caches and restores the bazelisk download directory, the bazel build directory. - name: Cache bazel uses: actions/cache@v2 env: cache-name: bazel-cache with: path: | ~/.cache/bazelisk ~/.cache/bazel key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}-development # Checks-out your repository under $GITHUB_WORKSPACE, which is the CWD for # the rest of the steps - uses: actions/checkout@v2 # build - name: Build the code run: bazel build //... # - name: Run the test # run: bazel test //...
Check the result on your actions page by example the on https://github.com/davidB/sandbox_bazel/actions this job took 23s.
If you re-run the job, bazel will be downloaded again. You can improve a little the build by using cache.