You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/10/25 10:58:38 UTC

[avro] branch avro-3653-arm64-on-github-actions created (now 9e477dd55)

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a change to branch avro-3653-arm64-on-github-actions
in repository https://gitbox.apache.org/repos/asf/avro.git


      at 9e477dd55 AVRO-3653: [CI] Use Github Actions with QEMU for testing on Linux ARM64

This branch includes the following new commits:

     new 9e477dd55 AVRO-3653: [CI] Use Github Actions with QEMU for testing on Linux ARM64

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[avro] 01/01: AVRO-3653: [CI] Use Github Actions with QEMU for testing on Linux ARM64

Posted by mg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch avro-3653-arm64-on-github-actions
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 9e477dd55ae2b107efd631d379a2fd8897ee325d
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Tue Oct 25 13:57:28 2022 +0300

    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 <mg...@apache.org>
---
 .github/workflows/test-arm64.yml | 43 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/.github/workflows/test-arm64.yml b/.github/workflows/test-arm64.yml
new file mode 100644
index 000000000..19efe527e
--- /dev/null
+++ b/.github/workflows/test-arm64.yml
@@ -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
+            
+