You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by jo...@apache.org on 2023/03/17 21:17:09 UTC

[mahout] branch feature/mahout-githubactions-build created (now 6bf5ef36b)

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

jowanza pushed a change to branch feature/mahout-githubactions-build
in repository https://gitbox.apache.org/repos/asf/mahout.git


      at 6bf5ef36b Adding Github action to build the mahout project

This branch includes the following new commits:

     new 6bf5ef36b Adding Github action to build the mahout project

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.



[mahout] 01/01: Adding Github action to build the mahout project

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

jowanza pushed a commit to branch feature/mahout-githubactions-build
in repository https://gitbox.apache.org/repos/asf/mahout.git

commit 6bf5ef36b3cdcb1018016ec1e176358df15da111
Author: Jowanza Joseph <jo...@gmail.com>
AuthorDate: Fri Mar 17 15:16:54 2023 -0600

    Adding Github action to build the mahout project
---
 .github/workflows/mahout.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/.github/workflows/mahout.yml b/.github/workflows/mahout.yml
new file mode 100644
index 000000000..7d13d6987
--- /dev/null
+++ b/.github/workflows/mahout.yml
@@ -0,0 +1,64 @@
+name: Java CI with Maven
+
+on:
+  push:
+    branches:
+      - trunk
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    env:
+      JAVA_OPTS: -Xmx3g
+      TEST_MODULES: "core,engine"
+      STANDARD_BUILD_OPTS: "-Dmaven.javadoc.skip=true -B -V"
+      PROFILES: "" # "-Ptravis"
+      SPARK_1_6: http://d3kbcqa49mib13.cloudfront.net/spark-1.6.3-bin-hadoop2.6.tgz
+      SPARK_2_0: http://d3kbcqa49mib13.cloudfront.net/spark-2.0.2-bin-hadoop2.7.tgz
+      SPARK_2_1: http://d3kbcqa49mib13.cloudfront.net/spark-2.1.0-bin-hadoop2.7.tgz
+      SPARK_2_3: https://archive.apache.org/dist/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz
+
+    steps:
+    - uses: actions/checkout@v3
+      with:
+        fetch-depth: 10
+
+    - name: Set up JDK 1.8
+      uses: actions/setup-java@v2
+      with:
+        java-version: 1.8
+
+    - name: Cache Maven packages
+      uses: actions/cache@v2
+      with:
+        path: ~/.m2
+        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+        restore-keys: ${{ runner.os }}-m2
+
+    - name: Install dependencies
+      run: |
+        sudo apt-get update
+        sudo apt-get install ocl-icd-libopencl1
+        wget https://github.com/viennacl/viennacl-dev/archive/release-1.7.1.zip
+        unzip -qq release-1.7.1.zip
+        sudo cp -r viennacl-dev-release-1.7.1/viennacl /usr/include/viennacl
+        sudo cp -r viennacl-dev-release-1.7.1/CL /usr/include/CL
+        sudo apt-get install openssh-client
+        sudo apt-get install openssh-server
+        ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa
+        cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
+
+    - name: Build with Maven
+      run: mvn clean package $STANDARD_BUILD_OPTS -DskipTests -DskipCli
+
+    - name: Setup Spark
+      run: |
+        echo $SPARK_BIN
+        wget $SPARK_BIN
+        tar -xzf *tgz
+        spark*/sbin/start-all.sh
+
+    - name: Run tests with Spark
+      run: mvn test -pl $TEST_MODULES $PROFILES -Dtest.spark.master=spark://localhost:7077
\ No newline at end of file