From: Matthieu <20992787+MatthieuCoder@users.noreply.github.com> Date: Wed, 4 Aug 2021 17:06:08 +0000 (+0400) Subject: add github actions congif X-Git-Tag: v0.1~96 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=43adf25b5c81f28097c2cb9d4ffc97e293f3fd78;p=matthieu%2Fnova.git add github actions congif --- diff --git a/.github/workflows/bazel-build.yml b/.github/workflows/bazel-build.yml new file mode 100644 index 0000000..187384f --- /dev/null +++ b/.github/workflows/bazel-build.yml @@ -0,0 +1,44 @@ +# This is a basic workflow to help you get started with Actions + +name: Build + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: Setup Bazelisk + # You may pin to the exact commit or the version. + # uses: bazelbuild/setup-bazelisk@2351cf5a7584ce72638fbce7c22e5128a5fcd5b2 + uses: bazelbuild/setup-bazelisk@v1.0.1 + with: + # The Bazelisk version to download (if necessary) and use. Supports semver spec and ranges. + bazelisk-version: 1.x # optional, default is 1.x + # Used to query bazelisk releases. Since there's a default, this is typically not supplied by the user. + token: ${{ github.token }} + # Runs a single command using the runners shell + - name: Mount bazel cache # Optional + uses: actions/cache@v2 + with: + path: "~/.cache/bazel" + key: bazel + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + bazel build //...