-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.04 KB
/
build.yaml
File metadata and controls
42 lines (40 loc) · 1.04 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
name: Build
on:
push:
tags: ["*-rc*"]
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- "2.6"
toolchain:
- "stable"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
default: true
- name: Set LD_LIBRARY_PATH
run: echo LD_LIBRARY_PATH=$(ruby -e 'print RbConfig::CONFIG["libdir"]') >> $GITHUB_ENV
- name: Set up Cargo cache
uses: actions/cache@v3
with:
path: ~/.cargo
key: cargo-cache-${{ steps.rust-toolchain.outputs.rustc_hash }}-${{ hashFiles('ext/datafusion_ruby/Cargo.lock') }}
- name: Build
run: make build
- name: Archive Artifact
uses: actions/upload-artifact@v3
with:
path: "*.gem"
# name: "arrow-datafusion-x.y.z.gem"