[SEDONA-503] Fix the upload-artifact 503 error (#1142) #2339
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
name: Example project build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '8' | |
- run: sudo apt-get remove scala-library scala | |
- run: sudo wget www.scala-lang.org/files/archive/scala-2.12.11.deb | |
- run: sudo dpkg -i scala-2.12.11.deb | |
- run: scala -version | |
- run: echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
- run: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 | |
- run: sudo apt-get update | |
- run: sudo apt-get install sbt | |
- name: Cache SBT | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }} | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- run: (cd examples/spark-rdd-colocation-mining;sbt clean assembly;java -jar target/scala-2.12/*.jar) | |
- run: (cd examples/spark-sql;sbt clean assembly;java -jar target/scala-2.12/*.jar) | |
- run: (cd examples/spark-viz;sbt clean assembly;java -jar target/scala-2.12/*.jar) | |
- run: (cd examples/flink-sql;mvn clean install;java -jar target/sedona-flink-example-1.0.0.jar) |