Skip to content

Commit

Permalink
Merge pull request #24 from ollietreend/macos-runners
Browse files Browse the repository at this point in the history
Add macOS to the test matrix
  • Loading branch information
cfis authored Apr 11, 2024
2 parents 2027825 + f51f7fb commit be3eb20
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
name: proj4rb

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
proj_8:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
os: [ubuntu-22.04, macos-13, macos-14]
ruby: [3.2, 3.3]
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Proj
run: sudo apt-get install libproj22
- name: CPU architecture
run: uname -p
- name: Install Proj (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install libproj22
- name: Install Proj (Mac)
if: startsWith(matrix.os, 'macos')
run: |
brew update
brew install proj
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Test
run: bundle exec rake test
run: bundle exec rake test

0 comments on commit be3eb20

Please sign in to comment.