prepare releasing v0.9.0 #1021
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['2.7.8', '3.0.6', '3.1.4', '3.2.2', '3.3.0-preview1', 'head'] | |
duckdb: ['0.9.0', '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/*.so duckdb-v$DUCKDB_VERSION/build/release/src | |
cp -rip duckdb-tmp-v$DUCKDB_VERSION/src/include duckdb-v$DUCKDB_VERSION/src/ | |
- name: Build with Ruby ${{ matrix.ruby }} | |
env: | |
DUCKDB_VERSION: ${{ matrix.duckdb }} | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
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: test with Ruby ${{ matrix.ruby }} | |
env: | |
DUCKDB_VERSION: ${{ matrix.duckdb }} | |
run: | | |
rake test | |
post-test: | |
name: All tests passed on Ubuntu | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- run: echo ok |