-
Notifications
You must be signed in to change notification settings - Fork 54
54 lines (44 loc) · 1.18 KB
/
build-gem.yml
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 gem
on:
workflow_call:
inputs:
version:
description: 'The version of ruby to build against'
required: true
default: '3.0'
jobs:
build-gem:
runs-on: ubuntu-latest
env:
LD_SKIP_DATABASE_TESTS: 0
services:
redis:
image: redis
ports:
- 6379:6379
dynamodb:
image: amazon/dynamodb-local
ports:
- 8000:8000
consul:
image: hashicorp/consul
ports:
- 8500:8500
env:
BUILD_PLATFORM: ${{ startsWith(inputs.version, 'jruby') && 'jruby' || 'ruby' }}
FLAKY: ${{ startsWith(inputs.version, 'jruby') && 'true' || 'false' }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
version: ${{ inputs.version }}
- uses: ./.github/actions/check
with:
flaky: ${{ env.FLAKY }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build gemspec (jruby)
run: gem build launchdarkly-server-sdk.gemspec --platform=$BUILD_PLATFORM
- uses: actions/upload-artifact@v4
with:
name: gems
path: launchdarkly-server-sdk-*.gem