-
Notifications
You must be signed in to change notification settings - Fork 6
103 lines (89 loc) · 3.01 KB
/
main.yml
File metadata and controls
103 lines (89 loc) · 3.01 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
exotic-regression:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
platform: [x86, x64]
compiler: [gnu, clang, tcc, msvc]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Regression
uses: exoticlibraries/exotic-action@v1.5
with:
download-exotic-libraries: true
run-regression: true
test-folders: |
test/
test-exclude-file-pattern: |
mock+
test_info
crash_test.c
test_assert_double_float+
test_assert_long_long+
test-exclude-file-pattern-windows: |
stream
compiler-options-for-tests: |
-I../include -I./include
compiler-options-for-tests-msvc: |
/I../include /I./include
regression-cli-options: |
--cester-printversion
execute-cmake-regression:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
platform: [x64]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download Dependencies
run: |
sudo apt-get purge --auto-remove cmake
sudo mkdir /opt/cmake
sudo wget https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.sh
sudo sh cmake-3.17.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
sudo apt-get install gcc-multilib g++-multilib
- name: Run Cmake Regression
run: |
cd ./test/
/opt/cmake/bin/cmake CMakeLists.txt -G"Unix Makefiles"
make
build-and-deploy-gh_pages:
runs-on: ubuntu-latest
needs: exotic-regression
if: github.event_name == 'push' && contains(github.ref, 'refs/heads/main')
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Install and Build 🔧
run: |
sudo apt-get upgrade && sudo apt-get update && sudo apt-get clean
sudo apt-get install -y python3 python3-setuptools python3-pip python3-sphinx
python3 -m pip install --upgrade pip
python3 -m pip install themata m2r2
pip install themata m2r2
sudo apt-get install -y clang doxygen make
cd ./docs/
rm -Rf build/
sphinx-build -b html -d build/doctrees ./ build/html
doxygen
touch ./build/html/.nojekyll
cd ../
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_CI_CD }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true