-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (48 loc) · 1.15 KB
/
ci.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
name: CI
on:
- push
- pull_request
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
JAVA_OPTS: -Djdk.io.File.enableADS=true
jobs:
examples-gem:
name: Examples / Gem
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby:
- 3.0.6
- 3.1.4
- 3.2.2
- jruby-9.4.3.0
- truffleruby-23.0.0
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
- os: windows-latest
ruby: truffleruby-23.0.0
defaults:
run:
working-directory: examples/gem
steps:
- uses: actions/checkout@v3
- uses: p0deje/[email protected]
- run: echo 'RUBY_VERSION = "${{ matrix.ruby }}"' > ruby_version.bzl
- run: bazel build ...
- run: bazel run lib/gem:add-numbers 2
- run: bazel run lib/gem:print-version
- run: bazel test ...
- if: failure() && runner.debug == '1'
uses: mxschmitt/action-tmate@v3
stardoc:
name: Stardoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: bazel build docs/...