Skip to content

Commit 9b85131

Browse files
authored
Move to GitHub Actions (#41)
* Move to GitHub Actions
1 parent 15a1602 commit 9b85131

File tree

8 files changed

+103
-104
lines changed

8 files changed

+103
-104
lines changed

.github/workflows/actions.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: PDAL Java CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
linux:
7+
runs-on: ${{matrix.os}}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest]
12+
scala: [2.13.1, 2.12.10]
13+
14+
container:
15+
image: daunnc/pdal-debian:2.0.1
16+
env:
17+
SCALA_VERSION: ${{matrix.scala}}
18+
volumes:
19+
- ~/.ivy2:/root/.ivy2
20+
- ~/.sbt:/root/.sbt
21+
- ~/.cache:/root/.cache
22+
- $PWD:/pdal-java
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Cache SBT ivy cache
29+
uses: actions/cache@v1
30+
with:
31+
path: ~/.ivy2/cache
32+
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}
33+
34+
- name: Cache SBT coursier cache
35+
uses: actions/cache@v1
36+
with:
37+
path: ~/.cache
38+
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/build.sbt') }}
39+
40+
- name: Cache SBT
41+
uses: actions/cache@v1
42+
with:
43+
path: ~/.sbt
44+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
45+
46+
- name: Test
47+
run: |
48+
./sbt ++$SCALA_VERSION "project core" test
49+
./sbt ++$SCALA_VERSION "project core-scala" test
50+
cd examples/pdal-jni
51+
./sbt ++$SCALA_VERSION "runMain com.azavea.Main"
52+
./sbt ++$SCALA_VERSION "runMain com.azavea.MainScala"
53+
54+
macos:
55+
runs-on: ${{matrix.os}}
56+
57+
strategy:
58+
matrix:
59+
os: [macos-latest]
60+
scala: [2.13.1, 2.12.10]
61+
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v2
65+
66+
- name: Cache SBT ivy cache
67+
uses: actions/cache@v1
68+
with:
69+
path: ~/.ivy2/cache
70+
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/build.sbt') }}
71+
72+
- name: Cache SBT coursier cache
73+
uses: actions/cache@v1
74+
with:
75+
path: ~/.coursier
76+
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/build.sbt') }}
77+
78+
- name: Cache SBT
79+
uses: actions/cache@v1
80+
with:
81+
path: ~/.sbt
82+
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt') }}
83+
84+
- name: Cache Homebrew
85+
uses: actions/cache@v1
86+
with:
87+
path: ~/Library/Caches/Homebrew
88+
key: ${{ runner.os }}-homebrew
89+
90+
- name: Install PDAL
91+
run: |
92+
brew update
93+
brew install pdal || true
94+
95+
- name: Test
96+
run: |
97+
./sbt ++${{matrix.scala}} "project core" test
98+
./sbt ++${{matrix.scala}} "project core-scala" test
99+
cd examples/pdal-jni
100+
./sbt ++${{matrix.scala}} "runMain com.azavea.Main"
101+
./sbt ++${{matrix.scala}} "runMain com.azavea.MainScala"

.travis.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.travis/run.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

.travis/test-212.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis/test-all.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

.travis/test.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PDAL Java bindings
22

3-
[![Build Status](https://api.travis-ci.org/PDAL/java.svg)](http://travis-ci.org/PDAL/java) [![Join the chat at https://gitter.im/PDAL/PDAL](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/PDAL/PDAL?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.pdal/pdal/badge.svg)](https://search.maven.org/search?q=g:io.pdal)
3+
![PDAL Java CI](https://github.com/PDAL/java/workflows/PDAL%20Java%20CI/badge.svg) [![Join the chat at https://gitter.im/PDAL/PDAL](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/PDAL/PDAL?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.pdal/pdal/badge.svg)](https://search.maven.org/search?q=g:io.pdal)
44

55
Java bindings to use PDAL on JVM (supports PDAL >= 2.0).
66
Mac users can experience some issues with bindings that were build against a different PDAL version,

scripts/crosscompile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ docker run -it --rm \
2121
-v $PWD:/pdal-java \
2222
-v $HOME/.ivy2:/root/.ivy2 \
2323
-v $HOME/.sbt:/root/.sbt \
24-
-v $HOME/.coursier:/root/.coursier \
24+
-v $HOME/.coursier/cache:/root/.cache/coursier \
2525
daunnc/pdal-debian:2.0.1 bash -c "cd ./pdal-java; ./scripts/pack-native.sh --suffix=${PDAL_VERSION_SUFFIX}"
2626

2727
# docker run -it --rm \

0 commit comments

Comments
 (0)