Skip to content

Commit c138d69

Browse files
authored
Merge pull request #546 from andyundso/remove-mac-os-silicon-build
Remove Apple Silicon build on CircleCI
2 parents 0fa5ae0 + 74df2c7 commit c138d69

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

.circleci/config.yml

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -369,72 +369,6 @@ jobs:
369369
ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"
370370
exit $LASTEXITCODE
371371
372-
install_mac_silicon:
373-
parameters:
374-
ruby_version:
375-
description: "version tag for rubydev environment"
376-
type: string
377-
378-
# the XCode version on Mac OS also determines the Mac OS version you get
379-
# so for 15.0, we get 13.5.1
380-
macos:
381-
xcode: "15.0.0"
382-
resource_class: macos.m1.medium.gen1
383-
384-
steps:
385-
- run:
386-
name: Install rbenv and freetds from Homebrew
387-
command: |
388-
brew install freetds rbenv
389-
390-
- run:
391-
name: Install Ruby
392-
command: |
393-
latest_version=$(rbenv install --list-all | grep "<< parameters.ruby_version >>" | grep -v - | tail -1)
394-
rbenv install --skip-existing $latest_version
395-
rbenv global $latest_version
396-
397-
- run:
398-
name: Install bundler
399-
command: |
400-
gem install bundler -v 2.3.26
401-
402-
- checkout
403-
404-
- restore_cache:
405-
name: restore gem cache
406-
keys:
407-
- v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
408-
- v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}-
409-
- v1-bundle-<< parameters.ruby_version >>-{{ arch }}-
410-
411-
- run:
412-
name: bundle install gems
413-
command: |
414-
bundle install --path vendor/bundle
415-
416-
- save_cache:
417-
name: save gem cache
418-
paths:
419-
- ./vendor/bundle
420-
key: v1-bundle-<< parameters.ruby_version >>-{{ arch }}-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
421-
422-
- run:
423-
name: build gem
424-
command: |
425-
gem build tiny_tds.gemspec
426-
427-
- run:
428-
name: Install gem
429-
command: |
430-
gemVersion=$(sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' < VERSION)
431-
gem install --local "tiny_tds-$gemVersion.gem"
432-
433-
- run:
434-
name: Check if gem loads correctly
435-
command: |
436-
ruby -e "require 'tiny_tds'; puts TinyTds::Gem.root_path"
437-
438372
workflows:
439373
test_supported_ruby_versions:
440374
jobs:
@@ -471,14 +405,3 @@ workflows:
471405
- '3.0'
472406
- '3.1'
473407
- '3.2'
474-
475-
- install_mac_silicon:
476-
matrix:
477-
parameters:
478-
# Ruby 2.4 and Ruby 2.5 do not build on Silicon anymore
479-
ruby_version:
480-
- '2.6'
481-
- '2.7'
482-
- '3.0'
483-
- '3.1'
484-
- '3.2'

0 commit comments

Comments
 (0)