From b6ca78840abce00ee5c7752c18aecefd082c8d37 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Wed, 17 Apr 2024 22:03:08 +0200 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af8c8174..7ad4f910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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=$(