-
Notifications
You must be signed in to change notification settings - Fork 4
77 lines (61 loc) · 1.88 KB
/
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
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
name: ✔️ Test cppp-reiconv library
on:
release:
types: [published]
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
#--------------------------------------------collect--------------------------------------------
- uses: actions/checkout@v3
- name: 🧰 Setup Python
uses: actions/setup-python@v4
- name: 📁 Collect dependencies
run: |
sudo apt-get update
sudo apt-get install gcc cmake -y
- name: 🧰 Setup build-aux
run: |
./setup.sh
#--------------------------------------------build--------------------------------------------
- name: 🛠️ Build
run : |
mkdir -p build
cd build
cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON
cmake --build . --config=Release
cd ..
#--------------------------------------------test--------------------------------------------
- name: ✔️ Test
run : |
cd build
ctest --verbose -C Release
cd ..
test-macos:
runs-on: macos-latest
steps:
#--------------------------------------------collect--------------------------------------------
- uses: actions/checkout@v3
- name: 📁 Collect dependencies
run: |
brew install cmake
- name: 🧰 Setup build-aux
run : |
./setup.sh
#--------------------------------------------build--------------------------------------------
- name: 🛠️ Build
run : |
mkdir build
cd build
cmake .. -DENABLE_EXTRA=ON -DENABLE_TEST=ON
cmake --build . --config=Release
cd ..
#--------------------------------------------test--------------------------------------------
- name: ✔️ Test
run : |
cd build
ctest --verbose -C Release
cd ..