Skip to content

Build with platform arm #324

Build with platform arm

Build with platform arm #324

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-exposer:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bazel cache
id: bazel-cache
uses: actions/cache@v3
env:
version: 4.2.1
with:
path: "~/.cache/bazel"
key: ${{ runner.os }}-${{ env.version }}-bazel-cache
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Build exposer
run: |
bazel build //exposer:exposer
build-registry:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bazel cache
id: bazel-cache
uses: actions/cache@v3
env:
version: 4.2.1
with:
path: "~/.cache/bazel"
key: ${{ runner.os }}-${{ env.version }}-bazel-cache
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Build registry
run: |
bazel build //registry:registry
build-collector:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bazel cache
id: bazel-cache
uses: actions/cache@v3
env:
version: 4.2.1
with:
path: "~/.cache/bazel"
key: ${{ runner.os }}-${{ env.version }}-bazel-cache
- name: Install bazelisk
run: |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64"
mkdir -p "${GITHUB_WORKSPACE}/bin/"
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel"
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
- name: Build collector
run: |
bazel build //collector:collector