-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (49 loc) · 1.57 KB
/
linux_deploy.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
name: build-vr-volumeviewer-linux
on: workflow_dispatch
env:
BUILD_TYPE: Release
jobs:
build_linux:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
#- name: Install OpenGL support
# uses: openrndr/[email protected]
#- name: Test OpenGL
# run: xvfb-run glxinfo
- name: Run build script
run: sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
shell: bash
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.20.3'
- name: Clean superbuild folder
run: python3 superbuild/clean/clean.py
- name: Open superbuild folder
run: cd superbuild
- name: Install Mesa Packages
run: |
sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev
- name: Configure CMake
run: |
cd superbuild
cmake -S . -B . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: |
cd superbuild
make
- uses: papeloto/action-zip@v1
with:
files: superbuild/install_Linux/bin
recursive: false
dest: superbuild/install_Linux/vr-volumeviewer-linux.zip
- name: Upload app to release - MacOS
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{github.workspace}}/superbuild/install_Linux/vr-volumeviewer-linux.zip
tag: ${{ github.ref }}
- name: Test
working-directory: ${{github.workspace}}/superbuild/install_Linux/bin
run: ctest