Skip to content

Commit

Permalink
Merge pull request #428 from sparklemotion/flavorjones-upstream-ruby-…
Browse files Browse the repository at this point in the history
…head

ci: test edge rubies only in upstream.yml
  • Loading branch information
flavorjones authored Nov 24, 2023
2 parents f18d15e + 2239bd9 commit 571d231
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gem-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["2.7", "3.0", "3.1", "3.2", "head", "truffleruby-head"]
ruby: ["2.7", "3.0", "3.1", "3.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -82,7 +82,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.1", "3.2", "truffleruby-head"]
ruby: ["3.1", "3.2", "truffleruby"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sqlite3-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ jobs:
ruby: ["3.2", "3.1", "3.0", "2.7"]
lib: [system, packaged]
include:
- { os: ubuntu-latest, ruby: truffleruby-head, lib: packaged }
- { os: ubuntu-latest, ruby: head, lib: packaged }
- { os: ubuntu-latest, ruby: head, lib: system }
- { os: ubuntu-latest, ruby: truffleruby, lib: packaged }
- { os: windows-latest, ruby: ucrt, lib: system }
- { os: windows-latest, ruby: mswin, lib: system }

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
workflow_dispatch:
schedule:
- cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3
pull_request:
types: [opened, synchronize]
branches:
- '*'
paths:
- .github/workflows/upstream.yml # this file

jobs:
sqlite-head:
Expand All @@ -21,3 +27,35 @@ jobs:
bundler-cache: true
- run: bundle exec rake compile -- --with-sqlite-source-dir=${GITHUB_WORKSPACE}/sqlite
- run: bundle exec rake test

ruby-head:
name: ${{matrix.ruby}}-${{matrix.lib}}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, ruby: truffleruby-head, lib: packaged }
- { os: ubuntu-latest, ruby: head, lib: packaged }
- { os: ubuntu-latest, ruby: head, lib: system }

runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
apt-get: libsqlite3-dev
- if: matrix.lib == 'packaged'
uses: actions/cache@v3
with:
path: ports
key: ports-${{matrix.os}}-${{hashFiles('ext/sqlite3/extconf.rb','dependencies.yml')}}

- run: bundle exec rake compile -- --disable-system-libraries
if: matrix.lib == 'packaged'

- run: bundle exec rake compile -- --enable-system-libraries
if: matrix.lib == 'system'

- run: bundle exec rake test

0 comments on commit 571d231

Please sign in to comment.