.github/workflows/test_on_macos.yml in duckdb-0.10.2.0 vs .github/workflows/test_on_macos.yml in duckdb-1.0.0.0
- old
+ new
@@ -13,24 +13,24 @@
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
- ruby: ['3.0.6', '3.1.4', '3.2.3', '3.3.0', 'head']
- duckdb: ['0.9.2', '0.10.0', '0.10.1', '0.10.2']
+ ruby: ['3.0.7', '3.1.6', '3.2.4', '3.3.2', '3.4.0-preview1', 'head']
+ duckdb: ['1.0.0', '0.10.3']
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: duckdb cache
id: duckdb-cache
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: duckdb-v${{ matrix.duckdb }}
key: ${{ runner.os }}-duckdb-v${{ matrix.duckdb }}
- name: Build duckdb ${{ matrix.duckdb }}
@@ -43,23 +43,21 @@
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
+ - name: Build with Ruby ${{ matrix.ruby }}
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
+ bundle exec rake build -- --with-duckdb-include=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/src/include --with-duckdb-lib=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/build/release/src/
- - name: run test with Ruby ${{ matrix.ruby }}
+ - name: test with Ruby ${{ matrix.ruby }}
+ env:
+ DUCKDB_VERSION: ${{ matrix.duckdb }}
run: |
+ export DYLD_LIBRARY_PATH=${GITHUB_WORKSPACE}/duckdb-v${DUCKDB_VERSION}/build/release/src:${DYLD_LIBRARY_PATH}
env RUBYOPT=-W:deprecated rake test
post-test:
name: All tests passed on macos
runs-on: macos-latest