-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI to check build on PR / push (#7)
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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 |