-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 836 Bytes
/
test.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
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [macos-12, macos-14, windows-latest, ubuntu-latest]
include:
- os: macos-12
bin_path: ./build/stockprice
- os: macos-14
bin_path: ./build/stockprice
- os: windows-latest
bin_path: ./build/Release/stockprice.exe
- os: ubuntu-latest
bin_path: ./build/stockprice
runs-on: ${{ matrix.os }}
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release
- name: test
run: |
${{ matrix.bin_path }} tsla,btc-usd