]> git.puffer.fish Git - matthieu/nova.git/commitdiff
Add .circleci/config.yml 5/head
authorMatthieu <20992787+MatthieuCoder@users.noreply.github.com>
Thu, 23 Sep 2021 04:38:04 +0000 (08:38 +0400)
committerMatthieu <20992787+MatthieuCoder@users.noreply.github.com>
Thu, 23 Sep 2021 04:38:04 +0000 (08:38 +0400)
.circleci/config.yml [new file with mode: 0644]

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644 (file)
index 0000000..df9ffe0
--- /dev/null
@@ -0,0 +1,35 @@
+version: 2.1
+
+commands:
+  setup-bazel:
+    description: |
+      Setup the Bazel build system used for building Android projects
+    steps:
+      - run:
+          name: Add Bazel Apt repository
+          command: |
+            sudo apt install curl gnupg
+            curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
+            sudo mv bazel.gpg /etc/apt/trusted.gpg.d/
+            echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
+      - run:
+          name: Install Bazel from Apt
+          command: sudo apt update && sudo apt install bazel
+
+jobs:
+  build:
+    docker:
+      - image: cimg/base:stable
+    steps:
+      - checkout
+      - setup-bazel
+      - run:
+          name: "Build"
+          command: "bazel build //:packages"
+      - store_artifacts:
+          path: ~/project/bazel-bin/packages*
+
+workflows:
+  build-workflow:
+    jobs:
+      - build