Sha256: a3444ce8b0b5894e119c6af4c2fd12df326c79d5eacfeeb01e45107243d71860

Contents?: true

Size: 1.87 KB

Versions: 2

Compression:

Stored size: 1.87 KB

Contents

name: MacOS

on:
  push:
    branches:
      - main
  pull_request:
    types:
      - opened
      - synchronize
      - reopened

jobs:
  test:
    runs-on: macos-latest
    strategy:
      matrix:
        ruby: ['3.0.6', '3.1.4', '3.2.2', '3.3.0', 'head']
        duckdb: ['0.9.2', '0.8.1']

    steps:
    - uses: actions/checkout@v3

    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}

    - name: duckdb cache
      id: duckdb-cache
      uses: actions/cache@v3
      with:
        path: duckdb-v${{ matrix.duckdb }}
        key: ${{ runner.os }}-duckdb-v${{ matrix.duckdb }}

    - name: Build duckdb ${{ matrix.duckdb }}
      env:
        DUCKDB_VERSION: ${{ matrix.duckdb }}
      if: steps.duckdb-cache.outputs.cache-hit != 'true'
      run: |
        git clone -b v$DUCKDB_VERSION https://github.com/cwida/duckdb.git duckdb-tmp-v$DUCKDB_VERSION
        cd duckdb-tmp-v$DUCKDB_VERSION && make && cd ..
        rm -rf duckdb-v$DUCKDB_VERSION
        mkdir -p duckdb-v$DUCKDB_VERSION/build/release/src duckdb-v$DUCKDB_VERSION/src
        cp -rip duckdb-tmp-v$DUCKDB_VERSION/build/release/src/*.dylib duckdb-v$DUCKDB_VERSION/build/release/src
        cp -rip duckdb-tmp-v$DUCKDB_VERSION/src/include duckdb-v$DUCKDB_VERSION/src/

    - name: prepare duckdb header and libraries
      env:
        DUCKDB_VERSION: ${{ matrix.duckdb }}
      run: |
        cp duckdb-v$DUCKDB_VERSION/src/include/*.h /usr/local/include
        cp duckdb-v$DUCKDB_VERSION/build/release/src/*.dylib /usr/local/lib

    - name: Build with Ruby ${{ matrix.ruby }}
      run: |
        bundle install --jobs 4 --retry 3
        rake build

    - name: run test with Ruby ${{ matrix.ruby }}
      run: |
        env RUBYOPT=-W:deprecated rake test

  post-test:
    name: All tests passed on macos
    runs-on: macos-latest
    needs: test
    steps:
      - run: echo ok

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
duckdb-0.9.2.3 .github/workflows/test_on_macos.yml
duckdb-0.9.2.2 .github/workflows/test_on_macos.yml