-
Notifications
You must be signed in to change notification settings - Fork 25
50 lines (43 loc) · 1.21 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
name: "ci"
on:
workflow_dispatch:
release:
types:
- created
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-13] # macos-12 is deprecated https://github.com/actions/runner-images/issues/10721
fail-fast: false # see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures
runs-on: ${{ matrix.os }}
env:
# Those are read by rake script
BUILD_TYPE: debug # release|debug
VERBOSE: true
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions`
- name: Install Dependencies
shell: bash
run: rake install --trace
- name: Build
shell: bash
run: rake build --trace
- name: Test
shell: bash
run: rake test --trace
- name: Binary Artifact
uses: actions/upload-artifact@v4
with:
name: nodable-${{ runner.os }}
path: build-${{env.BUILD_TYPE}}/nodable