-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ version: 2.1 | |
orbs: | ||
ruby: circleci/[email protected] | ||
sonarcloud: sonarsource/[email protected] | ||
asdf: rynkowsg/[email protected] | ||
|
||
# Pipeline parameters | ||
parameters: | ||
|
@@ -32,7 +33,6 @@ executors: | |
macos: # macOS executor running Xcode | ||
macos: | ||
xcode: 15.3.0 # Xcode 15.3 (15E204a), macOS Sonoma14.3.1 | ||
resource_class: macos.m1.large.gen1 | ||
|
||
jobs: | ||
|
||
|
@@ -78,26 +78,35 @@ jobs: | |
type: string | ||
default: "3.3.0" | ||
executor: << parameters.os >> | ||
environment: | ||
RUBY_VERSION: << parameters.ruby-version >> | ||
steps: | ||
# Install dependencies based on the OS | ||
- when: | ||
condition: | ||
equal: [ "docker", "<< parameters.os >>" ] | ||
steps: | ||
- run: | ||
name: Install ImageMagick and libvips | ||
command: sudo apt-get update && sudo apt-get -y --no-install-recommends install imagemagick libvips42 | ||
name: Install ImageMagick, libvips and libffi | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get -y --no-install-recommends install openssl imagemagick libvips42 libffi-dev | ||
- asdf/install | ||
- when: | ||
condition: | ||
equal: [ "macos", "<< parameters.os >>" ] | ||
steps: | ||
- run: | ||
name: Install ImageMagick and libvips | ||
command: brew install imagemagick vips | ||
|
||
name: Install ImageMagick, libvips and libffi | ||
command: | | ||
brew install openssl@3 imagemagick vips asdf libffi | ||
# Install requested Ruby version | ||
- ruby/install: | ||
version: "<< parameters.ruby-version >>" | ||
- run: | ||
name: Install Ruby << parameters.ruby-version >> | ||
command: | | ||
asdf plugin-add ruby | ||
asdf install ruby << parameters.ruby-version >> | ||
asdf global ruby << parameters.ruby-version >> | ||
# Check out code | ||
- checkout | ||
# Install dependencies using bundler | ||
|