File: downstream.yml

package info (click to toggle)
ruby-mini-portile2 2.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: ruby: 1,838; ansic: 38; sh: 8; makefile: 4
file content (66 lines) | stat: -rw-r--r-- 2,062 bytes parent folder | download | duplicates (2)
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
62
63
64
65
66
name: downstream
concurrency:
  group: "${{github.workflow}}-${{github.ref}}"
  cancel-in-progress: true
on:
  workflow_dispatch:
  schedule:
    - cron: "0 7 * * 1,3,5" # At 07:00 on Monday, Wednesday, and Friday # https://crontab.guru/#0_7_*_*_1,3,5
  push:
    branches:
      - main
      - "v*.*.x"
    tags:
      - v*.*.*
  pull_request:
    types: [opened, synchronize]
    branches:
      - '*'

jobs:
  downstream:
    name: downstream-${{matrix.name}}-${{matrix.platform}}
    strategy:
      fail-fast: false
      matrix:
        name: [re2, nokogiri, sqlite3]
        platform: [ubuntu-latest, windows-latest, macos-latest]
        include:
          - name: re2
            url: https://github.com/mudge/re2
            command: "bundle exec rake compile spec"
            ruby: "3.3"
          - name: nokogiri
            url: https://github.com/sparklemotion/nokogiri
            command: "bundle exec rake compile test"
            ruby: "3.3"
          - name: sqlite3
            url: https://github.com/sparklemotion/sqlite3-ruby
            command: "bundle exec rake compile test"
            ruby: "3.3"
    runs-on: ${{matrix.platform}}
    steps:
      - name: configure git crlf
        if: ${{ startsWith(matrix.platform, 'windows') }}
        run: |
          git config --system core.autocrlf false
          git config --system core.eol lf
      - uses: actions/checkout@v4
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{matrix.ruby}}
          bundler-cache: true
          bundler: latest
      - run: git clone --depth=1 ${{matrix.url}} ${{matrix.name}}
      - uses: actions/cache@v4
        with:
          path: ${{matrix.name}}/ports/archives
          key: tarballs-${{matrix.name}}
          enableCrossOsArchive: true
      - name: ${{matrix.name}} test suite
        working-directory: ${{matrix.name}}
        run: |
          bundle remove mini_portile2 || true
          bundle add mini_portile2 --path=".."
          bundle install --local || bundle install
          ${{matrix.command}}