-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 1.69 KB
/
main.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
name: CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, ubuntu-18.04, ubuntu-20.04, ubuntu-latest, windows-latest]
platform: [x86, x64]
compiler: [gnu, clang]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Exotic Libraries
uses: exoticlibraries/[email protected]
with:
run-regression: false
- name: Run Regression
uses: exoticlibraries/[email protected]
with:
download-exotic-libraries: false
test-folder-recursive: false
run-regression: true
test-folders: |
test/
test-exclude-file-pattern: |
mock+
crash_test.c
compiler-options-for-tests: |
-I.
-I./test/structs
-I./include/
build-and-deploy-gh_pages:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' #&& contains(github.ref, 'refs/for/main')
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- name: Install and Build 🔧
run: |
pip3 install themata
cd ./docs/
bash ./make.sh
cd ../
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_CI_CD }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/build/html
CLEAN: true