Feature: Setup Cosmos CLI #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Cosmos CLI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Bazelisk | |
run: | | |
# Install Bazelisk | |
curl -Lo bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 | |
chmod +x bazel | |
mkdir -p "$HOME/bin" | |
mv bazel "$HOME/bin/" | |
export PATH="$HOME/bin:$PATH" | |
bazel --version | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y g++ | |
- name: Build and Test | |
run: | | |
./tools/build.sh |