Skip to content

Commit

Permalink
Add CI to check build on PR / push (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgreenek authored Feb 21, 2022
1 parent 3a68b51 commit eda3c68
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on: [push]

jobs:
build_x86-64:
runs-on: ubuntu-18.04
name: Build on ubuntu18.04 x86_64

steps:
- uses: actions/checkout@v2.1.0
- run: |
curl -sL https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 -o /tmp/bazel
chmod 755 /tmp/bazel
cd example
- run: |
cd example && /tmp/bazel build "@pcl//..." --verbose_failures --show_progress_rate_limit=10
build_aarch64:
runs-on: ubuntu-18.04
name: Build on ubuntu18.04 aarch64

steps:
- uses: actions/checkout@v2.1.0
- uses: uraimo/run-on-arch-action@v2.1.1
name: Build and run tests on embedded platforms
with:
arch: aarch64
distro: ubuntu18.04

# Not required, but speeds up builds
githubToken: ${{ github.token }}

# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
apt-get update -q -y
apt-get install -q -y curl gcc g++
curl -sL https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-arm64 -o /usr/bin/bazel
chmod 755 /usr/bin/bazel
run: |
cd example && bazel build "@pcl//..." --verbose_failures --show_progress_rate_limit=10

0 comments on commit eda3c68

Please sign in to comment.