]> git.puffer.fish Git - matthieu/nova.git/commitdiff
add github actions congif
authorMatthieu <20992787+MatthieuCoder@users.noreply.github.com>
Wed, 4 Aug 2021 17:06:08 +0000 (21:06 +0400)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 17:06:08 +0000 (21:06 +0400)
.github/workflows/bazel-build.yml [new file with mode: 0644]

diff --git a/.github/workflows/bazel-build.yml b/.github/workflows/bazel-build.yml
new file mode 100644 (file)
index 0000000..187384f
--- /dev/null
@@ -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 //...