-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AVRO-3653: [CI] Use Github Actions with QEMU for testing on Linux ARM64
Migrate the Java build from .travis.yaml Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 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,43 @@ | ||
name: CI on Linux ARM64 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
java: | ||
name: Java on Linux ARM64 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
uses: uraimo/run-on-arch-action@v2 | ||
with: | ||
arch: aarch64 | ||
distro: ubuntu20.04 | ||
githubToken: ${{ github.token }} | ||
dockerRunArgs: | | ||
--volume "${PWD}:/avro" | ||
install: | | ||
apt-get update -q | ||
apt-get install -q -y openjdk-8-jdk wget tar | ||
run: | | ||
set -x | ||
cd /avro | ||
export MAVEN_VERSION="3.8.5" | ||
wget https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | ||
tar zxvf apache-maven-$MAVEN_VERSION-bin.tar.gz | ||
export M2_HOME=$PWD/apache-maven-$MAVEN_VERSION | ||
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-arm64" | ||
export PATH="$M2_HOME/bin:$JAVA_HOME/bin:$PATH" | ||
java -version | ||
mvn -version | ||
cd lang/java | ||
./build.sh clean test | ||