-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (33 loc) · 897 Bytes
/
build.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
---
name: Build
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
container: opensuse/tumbleweed
steps:
- name: Install dependencies
run: |
zypper in -y cmake gcc-c++ ruby git
- uses: actions/checkout@v3
- name: Configure project
run: cmake --preset dev
- name: Build project
run: cmake --build --preset dev
- name: Run tests
run: ruby test/rj_test.rb
build-macos:
runs-on: macos-latest
steps:
- name: Install dependencies
run: |
brew install cmake git
- uses: actions/checkout@v3
- name: Configure project
run: cmake --preset dev -DCMAKE_OSX_ARCHITECTURES='arm64;x86_64'
- name: Build project
run: cmake --build --preset dev
env:
UNIVERSAL_BUILD: 1
- name: Run tests
run: ruby test/rj_test.rb