forked from feelpp/verdandi
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (71 loc) · 2.03 KB
/
ci.yml
File metadata and controls
80 lines (71 loc) · 2.03 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
name: CI
on: [push]
jobs:
activate:
runs-on: ubuntu-latest
if: |
github.repository == 'feelpp/verdandi' &&
!startsWith(github.event.head_commit.message, 'Release ') &&
!contains(github.event.head_commit.message, 'ci skip')
steps:
- run: echo ok go
build_docs:
needs: activate
runs-on: ubuntu-latest
name: Build, Install, Package documentation
if: "!contains(github.event.head_commit.message, 'docs skip')"
steps:
- uses: actions/checkout@v2.3.4
- name: Install credentials
run: echo https://$GITHUB_OAUTH:@github.com > $HOME/.git-credentials
env:
GITHUB_OAUTH: ${{ secrets.DOCS_GITHUB_KEY }}
- name: Build
run: |
echo "add doc geeneration command here..."
# working-directory: docs
# - name: Deploy
# uses: JamesIves/github-pages-deploy-action@4.1.4
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BRANCH: gh-pages # The branch the action should deploy to.
# FOLDER: docs/public # The folder the action should deploy.
build_code:
needs: activate
runs-on: self-hosted
name: Build, Install, Package code
if: "!contains(github.event.head_commit.message, 'code skip')"
steps:
-
uses: actions/checkout@v2.3.4
with:
lfs: true
-
name: Install dependencies
run: |
sudo apt -yq install liblua5.2-dev swig
-
name: Build MyProject
run: |
rm -rf build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install ..
make -j5
# make install
# -
# name: Check build
# run: |
# ctest
# working-directory: build/
# -
# name: Package
# run: |
# make package
# working-directory: build
# - name: Upload
# uses: actions/upload-artifact@v2
# with:
# # Artifact name
# name: feelpp-project-artifacts
# # Directory containing files to upload
# path: build/assets/myproject-*