Skip to content

Commit

Permalink
Test installation on M1 Mac
Browse files Browse the repository at this point in the history
This is a test specifically for #545, which we were unable to run on CircleCI since we did not have paid runners.
  • Loading branch information
andyundso committed Apr 17, 2024
1 parent 7dcd4fa commit b6ca788
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -406,3 +406,38 @@ jobs:
with:
paths: "test/reports/TEST-*.xml"
if: always()

install_macos:
strategy:
fail-fast: false
matrix:
ruby-version:
- 2.7
- "3.0"
- 3.1
- 3.2
- 3.3

name: Install on Mac OS (M1)
runs-on: macos-14
steps:
- uses: actions/checkout@v4

- name: Install FreeTDS
run: brew install freetds
shell: bash

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Build gem
shell: bash
run: gem build tiny_tds.gemspec

- name: Install gem and test if TinyTDS loads
shell: bash
run: |
gemVersion=$(<VERSION tr -d '[:space:]')
gem install --local "tiny_tds-$gemVersion.gem"
ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"

0 comments on commit b6ca788

Please sign in to comment.