From 74df2c7f5ecbbda162fa9c9d2db08e8f38a95cad Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Sun, 3 Dec 2023 17:25:11 +0100 Subject: [PATCH] Remove Apple Silicon build on CircleCI On the corresponding PR (https://github.com/rails-sqlserver/tiny_tds/pull/545), everything looked fine and the build passed: https://app.circleci.com/pipelines/github/andyundso/tiny_tds/55/workflows/727c3150-0a8f-40a7-8a5f-9fd58e4e9428 However, once merged to master, the build failed since the executor was not available for the `tiny_tds` organization (see https://app.circleci.com/pipelines/github/rails-sqlserver/tiny_tds/18/workflows/47a0e21f-eda7-4901-a34b-ca4265f4f344/jobs/486). Although it would be helpful to have it, this commit removes the Apple Silicon build on CircleCI. --- .circleci/config.yml | 77 -------------------------------------------- 1 file changed, 77 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eac0bbb5..18f95277 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -369,72 +369,6 @@ jobs: ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path" exit $LASTEXITCODE - install_mac_silicon: - parameters: - ruby_version: - description: "version tag for rubydev environment" - type: string - - # the XCode version on Mac OS also determines the Mac OS version you get - # so for 15.0, we get 13.5.1 - macos: - xcode: "15.0.0" - resource_class: macos.m1.medium.gen1 - - steps: - - run: - name: Install rbenv and freetds from Homebrew - command: | - brew install freetds rbenv - - - run: - name: Install Ruby - command: | - latest_version=$(rbenv install --list-all | grep "<< parameters.ruby_version >>" | grep -v - | tail -1) - rbenv install --skip-existing $latest_version - rbenv global $latest_version - - - run: - name: Install bundler - command: | - gem install bundler -v 2.3.26 - - - checkout - - - restore_cache: - name: restore gem cache - keys: - - v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }} - - v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}- - - v1-bundle-<< parameters.ruby_version >>-{{ arch }}- - - - run: - name: bundle install gems - command: | - bundle install --path vendor/bundle - - - save_cache: - name: save gem cache - paths: - - ./vendor/bundle - key: v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }} - - - run: - name: build gem - command: | - gem build tiny_tds.gemspec - - - run: - name: Install gem - command: | - gemVersion=$(sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' < VERSION) - gem install --local "tiny_tds-$gemVersion.gem" - - - run: - name: Check if gem loads correctly - command: | - ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path" - workflows: test_supported_ruby_versions: jobs: @@ -471,14 +405,3 @@ workflows: - '3.0' - '3.1' - '3.2' - - - install_mac_silicon: - matrix: - parameters: - # Ruby 2.4 and Ruby 2.5 do not build on Silicon anymore - ruby_version: - - '2.6' - - '2.7' - - '3.0' - - '3.1' - - '3.2'