-
Notifications
You must be signed in to change notification settings - Fork 2
88 lines (71 loc) · 2.13 KB
/
build.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: build-and-run
on: [push, pull_request]
jobs:
build-libsignaletic:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: BSFishy/pip-action@v1
with:
packages: |
meson
ninja
- name: Prepare MSVC (Windows-only)
if: runner.os == 'Windows'
uses: bus1/cabuild/action/msdevshell@v1
# Build libsignaletic for the native architecture
- name: Native build
run: |
cd libsignaletic
meson setup build/native
meson compile -C build/native
# Tests
- name: Run native unit tests
run: |
cd libsignaletic
meson test -C build/native -v
# Run examples
- name: run console example
run: ./libsignaletic/build/native/libsignaletic-console-example
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: BSFishy/pip-action@v1
with:
packages: |
meson
ninja
- uses: mymindstorm/setup-emsdk@v11
- name: Web Assembly build
run: |
./cross-build-wasm.sh
- name: Run unit tests in Node.js
run: |
./run-wasm-tests.sh
- name: run console example in Node.js
run: node ./libsignaletic/build/wasm/libsignaletic-console-example.js
build-daisy-host:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install ARM toolchain
# We only install ARM GCC, since we don't need the other
# tools in the Daisy Toolchain and they're slow to install.
run: |
git clone https://github.com/electro-smith/DaisyToolchain.git
cd DaisyToolchain/macOS
brew install ./gcc-arm-embedded.rb --cask
- name: Build Daisy Host and Examples
run: |
./cross-build-arm.sh