1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
name: upstream
concurrency:
group: "${{github.workflow}}-${{github.ref}}"
cancel-in-progress: true
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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
git clone --depth=1 https://github.com/sqlite/sqlite
git -C sqlite log -n1
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: "3.3"
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@v6
- 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@v4
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
|