Skip to content

Commit

Permalink
rspec on several ruby versions and also macos
Browse files Browse the repository at this point in the history
  • Loading branch information
djellemah committed Jul 21, 2023
1 parent 4e09512 commit 5194e03
Showing 1 changed file with 22 additions and 31 deletions.
53 changes: 22 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ on:

jobs:
rspec:
runs-on: ubuntu-latest
if: false
strategy:
matrix:
# note 20-Jul-2023 2.7.8 is EOL
ruby_version: ['2.7.8', '3.0.6', '3.1.4', '3.2.2']

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1.84.0
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.2'
# 24-Jan-2022 not yet in ubuntu-latest
# ruby-version: '3.1.0'
ruby-version: ${{ matrix.ruby_version }}

- run: bundle install

Expand Down Expand Up @@ -49,36 +52,24 @@ jobs:
continue-on-error: true

steps:
- uses: actions/checkout@v2
- name: install swi-prolog
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install swi-prolog
otool -L $(which swipl)
swipl --dump-runtime-variables=sh
env
find /usr/local/Cellar/swi-prolog/9.0.4 -ls
false
- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1.84.0
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.2'
ruby-version: '3.0.6'
# 24-Jan-2022 not yet in ubuntu-latest
# ruby-version: '3.1.0'

- run: bundle install

# TODO macos-specific stuff here
# https://www.swi-prolog.org/build/macos.html
# - name: update ubuntu
# run: |
# sudo apt-get update

# # otherwise it prompts for timezone
# sudo apt-get install -y tzdata
# sudo apt-get install -y software-properties-common

# - name: install swi
# run: |
# # Stable versions
# sudo apt-add-repository -y ppa:swi-prolog/stable
# sudo apt-get update
# sudo apt-get install -y swi-prolog-nox

# # Development versions
# # sudo apt-add-repository ppa:swi-prolog/devel
# # sudo apt-get update
# # sudo apt-get install -y swi-prolog-nox

- run: rspec

0 comments on commit 5194e03

Please sign in to comment.