1010 # types: [published]
1111
1212jobs :
13- linux :
13+ build :
1414 strategy :
1515 matrix :
16- os : [ubuntu-latest]
17- image : ['daunnc/pdal-ubuntu:2.6.0']
18- runs-on : ${{ matrix.os }}
19- container :
20- image : ${{ matrix.image }}
21-
22- steps :
23- - uses : actions/checkout@v3
24- with :
25- fetch-depth : 0
26- # https://github.com/actions/runner/issues/2033
27- - name : Set ownership
28- run : |
29- # this is to fix GIT not liking owner of the checkout dir
30- chown -R $(id -u):$(id -g) $PWD
31-
32- - uses : coursier/cache-action@v6
33-
34- - name : Check formatting
35- run : ./sbt scalafmtCheckAll
36-
37- - name : Build project
38- run : ./sbt +test
39-
40- macos :
41- strategy :
42- matrix :
43- os : [macos-latest]
16+ os : [ubuntu-latest, macos-latest]
4417 java : [8]
4518 distribution : [temurin]
4619 pdal : [2.6.2]
@@ -61,29 +34,22 @@ jobs:
6134
6235 - uses : conda-incubator/setup-miniconda@v3
6336 with :
64- # auto-update-conda: true
65- # auto-activate-base: true
66- activate-environment : " pdal-java"
37+ activate-environment : pdal-java
6738 channels : conda-forge
6839
6940 - name : Install PDAL
7041 run : conda install pdal=${{ matrix.pdal }}
7142
72- # - name: Check formatting
73- # run: sbt scalafmtCheckAll
43+ - run : echo "LD_LIBRARY_PATH=$CONDA/envs/pdal-java/lib:/usr/local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
44+
45+ - name : Check formatting
46+ run : sbt scalafmtCheckAll
7447
7548 - name : Build project
76- run : |
77- # export PDAL_DIR=$CONDAenvs/pdal-java/
78- echo "CONA: $CONDA"
79- ls $CONDA
80- echo "========"
81- ls ${CONDA}/envs
82- echo "======="
83- which pdal
84- sbt +test
49+ run : sbt +test
8550
8651 - uses : actions/upload-artifact@v3
52+ if : ${{ startsWith(matrix.os, 'macos') }}
8753 with :
8854 name : macos
8955 path : native/target/native/x86_64-darwin/bin
@@ -92,12 +58,15 @@ jobs:
9258 strategy :
9359 matrix :
9460 os : [ubuntu-latest]
95- image : ['daunnc/pdal-ubuntu:2.5.1']
61+ java : [8]
62+ distribution : [temurin]
63+ pdal : [2.6.2]
9664 runs-on : ${{ matrix.os }}
97- needs : [linux, macos]
98- container :
99- image : ${{ matrix.image }}
10065 if : github.event_name != 'pull_request'
66+ needs : [build]
67+ defaults :
68+ run :
69+ shell : bash -el {0}
10170 env :
10271 PDAL_DEPEND_ON_NATIVE : " false"
10372 CI_CLEAN : " "
@@ -106,21 +75,29 @@ jobs:
10675 - uses : actions/checkout@v3
10776 with :
10877 fetch-depth : 0
109- # https://github.com/actions/runner/issues/2033
110- - name : Set ownership
111- run : |
112- # this is to fix GIT not liking owner of the checkout dir
113- chown -R $(id -u):$(id -g) $PWD
114-
11578 - uses : coursier/cache-action@v6
79+ - uses : actions/setup-java@v3
80+ with :
81+ distribution : ${{ matrix.distribution }}
82+ java-version : ${{ matrix.java }}
83+
84+ - uses : conda-incubator/setup-miniconda@v3
85+ with :
86+ activate-environment : pdal-java
87+ channels : conda-forge
88+
89+ - name : Install PDAL
90+ run : conda install pdal=${{ matrix.pdal }}
91+
92+ - run : echo "LD_LIBRARY_PATH=$CONDA/envs/pdal-java/lib:/usr/local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV"
11693
11794 - uses : actions/download-artifact@v3
11895 with :
11996 name : macos
12097 path : native/target/native/x86_64-darwin/bin
12198
12299 - name : Release
123- run : ./ sbt ci-release
100+ run : sbt ci-release
124101 env :
125102 PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
126103 PGP_SECRET : ${{ secrets.PGP_SECRET }}
0 commit comments