Skip to content

Commit

Permalink
AVRO-3653: [CI] Use Github Actions with QEMU for testing on Linux ARM64
Browse files Browse the repository at this point in the history
Migrate the Java build from .travis.yaml

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Nov 14, 2022
1 parent 35545f9 commit 97fc62c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test-arm64.yml
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

0 comments on commit 97fc62c

Please sign in to comment.