Skip to content

Commit

Permalink
Adding MacOS M1 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Mar 14, 2024
1 parent d15bb37 commit 6ac0e6a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
push:
branches: ['main']
tags: [v*]
workflow_dispatch:

# release:
# types: [published]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
java: [8]
# Specifying `macos-14` is the way to get aarch64
os: [ubuntu-latest, macos-12, macos-14]
java: [11]
distribution: [temurin]
pdal: [2.6.3]
runs-on: ${{ matrix.os }}
Expand All @@ -32,6 +35,9 @@ jobs:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}

- run: brew install sbt
if: ${{ matrix.os == 'macos-14') }}

- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: pdal-java
Expand Down Expand Up @@ -71,7 +77,7 @@ jobs:
if: ${{ startsWith(matrix.os, 'macos') }}
with:
name: macos
path: native/target/native/x86_64-darwin/bin
path: native/target/native/${{ runner.arch }}-darwin/bin

publish:
strategy:
Expand Down Expand Up @@ -132,7 +138,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: macos
path: native/target/native/x86_64-darwin/bin
path: native/target/native/${{ runner.arch }}-darwin/bin

- name: Release
run: sbt ci-release
Expand Down

0 comments on commit 6ac0e6a

Please sign in to comment.