Skip to content

Commit b6ca788

Browse files
committed
Test installation on M1 Mac
This is a test specifically for #545, which we were unable to run on CircleCI since we did not have paid runners.
1 parent 7dcd4fa commit b6ca788

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,38 @@ jobs:
406406
with:
407407
paths: "test/reports/TEST-*.xml"
408408
if: always()
409+
410+
install_macos:
411+
strategy:
412+
fail-fast: false
413+
matrix:
414+
ruby-version:
415+
- 2.7
416+
- "3.0"
417+
- 3.1
418+
- 3.2
419+
- 3.3
420+
421+
name: Install on Mac OS (M1)
422+
runs-on: macos-14
423+
steps:
424+
- uses: actions/checkout@v4
425+
426+
- name: Install FreeTDS
427+
run: brew install freetds
428+
shell: bash
429+
430+
- uses: ruby/setup-ruby@v1
431+
with:
432+
ruby-version: ${{ matrix.ruby-version }}
433+
434+
- name: Build gem
435+
shell: bash
436+
run: gem build tiny_tds.gemspec
437+
438+
- name: Install gem and test if TinyTDS loads
439+
shell: bash
440+
run: |
441+
gemVersion=$(<VERSION tr -d '[:space:]')
442+
gem install --local "tiny_tds-$gemVersion.gem"
443+
ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"

0 commit comments

Comments
 (0)