diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa68a59..1b1a27c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + run: bundle exec rake test