PDAL 2.6.x #209
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: ['**'] | |
push: | |
branches: ['main'] | |
tags: [v*] | |
# release: | |
# types: [published] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
java: [8] | |
distribution: [temurin] | |
pdal: [2.6.2] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: "pdal-java" | |
channels: conda-forge | |
- run: which pdal | |
- run: ls $CONDA/envs/pdal-java/lib | |
- run: echo "LD_LIBRARY_PATH=$CONDA/envs/pdal-java/lib:/usr/local/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" | |
- name: Install PDAL | |
run: conda install python=3.11 pdal=${{ matrix.pdal }} python-pdal gdal | |
- name: Check formatting | |
run: sbt scalafmtCheckAll | |
- name: Build project | |
run: sbt +test | |
- uses: actions/upload-artifact@v3 | |
if: ${{ startsWith(matrix.os, 'macos') }} | |
with: | |
name: macos | |
path: native/target/native/x86_64-darwin/bin | |
publish: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java: [8] | |
distribution: [temurin] | |
pdal: [2.6.2] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
needs: [build] | |
if: github.event_name != 'pull_request' | |
env: | |
PDAL_DEPEND_ON_NATIVE: "false" | |
CI_CLEAN: "" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: "pdal-java" | |
channels: conda-forge | |
- name: Install PDAL | |
run: conda install pdal=${{ matrix.pdal }} | |
- uses: actions/download-artifact@v3 | |
with: | |
name: macos | |
path: native/target/native/x86_64-darwin/bin | |
- name: Release | |
run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
if: ${{ env.SONATYPE_PASSWORD != '' && env.SONATYPE_USERNAME != '' }} |