-
-
Notifications
You must be signed in to change notification settings - Fork 18
51 lines (41 loc) · 1.2 KB
/
pages.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
name: Pages
on:
push:
branches: [ "edge" ]
workflow_dispatch:
jobs:
pages-build:
name: Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup
run: |
sudo apt-get update
sudo apt-get install doxygen
curl -L -o premake5.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz && mkdir premake5 && tar -xf premake5.tar.gz -C premake5
echo "${GITHUB_WORKSPACE}/premake5" >> $GITHUB_PATH
- name: Test
run: |
premake5 check
premake5 --test gmake
make clean test
- name: Build
run: |
premake5 --modules=ctrl,cga,mouse gmake
make config=release_web clean web-frontend
- name: Docs
run: premake5 doc
- name: Package
run: |
mkdir gh-pages
echo -n app.virtualxt.org > gh-pages/CNAME
cp -r docs gh-pages
cp -r build/web/* gh-pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.6
with:
branch: gh-pages
folder: gh-pages