diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48eaf9a..0a6341d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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