diff options
| author | Matthieu <20992787+MatthieuCoder@users.noreply.github.com> | 2021-09-23 08:39:48 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-23 08:39:48 +0400 |
| commit | 30ec86caa2e318ea8cf39699fee56f9b8daca591 (patch) | |
| tree | d464d075cf0380ab460f2b1c78dafea70b3cfe04 | |
| parent | 272253d01511d3b0b45e3f119f0a5fa2f0c68da6 (diff) | |
| parent | b30bce72e2c85c076f7b7fe224e23d26e1769101 (diff) | |
Merge pull request #5 from discordnova/circleci-project-setup
Add .circleci/config.yml
| -rw-r--r-- | .circleci/config.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..df9ffe0 --- /dev/null +++ b/.circleci/config.yml @@ -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 |
