-
Notifications
You must be signed in to change notification settings - Fork 114
55 lines (44 loc) · 1.34 KB
/
linux.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
name: Linux
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
BUILD_TYPE: MinSizeRel
jobs:
linux-native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: cache
uses: actions/cache@v2
with:
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
path: "**/cpm_modules"
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: install dependencies
run: |
pip install jsonschema jinja2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential cmake mesa-common-dev libgl1-mesa-dev libx11-dev mesa-common-dev mesa-utils libgl-dev python3-distutils libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
- name: Configure CMake
run: cmake -Bbuild -H. -DCMAKE_BUILD_TYPE=MinSizeRel
- name: Build
# run: cmake --build build/ --parallel
run: cmake --build build/
- name: Release
uses: fnkr/[email protected]
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: build/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}