Repository navigation
54 lines (52 loc) · 1.5 KB
/
Copy pathbuild.yml
File metadata and controls
54 lines (52 loc) · 1.5 KB
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
name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: "4.0"
os: ubuntu-latest
# - ruby: 3.3
# os: windows-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 40
steps:
- uses: actions/checkout@v7
- uses: actions/cache@v6
with:
path: |
~/.cargo/registry
~/.cargo/git
tmp
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
# https://github.com/oxidize-rb/rb-sys/issues/268
- if: ${{ runner.os == 'Windows' }}
run: echo "RUST_TARGET=x86_64-pc-windows-gnu" >> "$env:GITHUB_ENV"
- run: bundle exec rake compile
- run: bundle exec rake test
- run: bundle exec yard --fail-on-warning
- run: bundle exec rake test:docs
- uses: ankane/setup-postgres@v1
with:
database: polars_ruby_test
- run: ruby test/database_test.rb
env:
ADAPTER: postgresql
- if: ${{ runner.os != 'Windows' }}
uses: ankane/setup-mysql@v1
with:
database: polars_ruby_test
- if: ${{ runner.os != 'Windows' }}
run: ruby test/database_test.rb
env:
ADAPTER: mysql
- if: ${{ runner.os != 'Windows' }}
run: ruby test/database_test.rb
env:
ADAPTER: trilogy