-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (72 loc) · 2.7 KB
/
build.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
63
64
65
66
67
68
69
70
71
72
73
name: build
on: [push, pull_request]
jobs:
build-macos:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: download & extract MOSEK
run: |
sudo wget https://download.mosek.com/stable/10.0.13/mosektoolsosx64x86.tar.bz2
sudo tar xvf mosektoolsosx64x86.tar.bz2
working-directory: /usr/local
- name: install MOSEK & Fusion
run: |
sudo python bin/install.py
sudo make -C src/fusion_cxx install -j3
working-directory: /usr/local/mosek/10.0/tools/platform/osx64x86
- name: build
run: |
mkdir build
cd build
cmake ..
make -j3
- name: archive
run: |
mkdir ssm-artifact-macos
cp handlecut landmarker seamlesssurfmap test_cocut test_conformal test_cut test_gflatten test_gmap test_handlecut test_isometric test_lift test_lo1 test_refine test_tutte test_util untangle ssm-artifact-macos
tar cvjf ssm-artifact-macos.tar.bz2 ssm-artifact-macos
working-directory: build
- uses: actions/upload-artifact@v3
with:
name: ssm-artifact-macos.tar.bz2
path: build/ssm-artifact-macos.tar.bz2
- name: upload to transfer.sh
run: curl --upload-file build/ssm-artifact-macos.tar.bz2 https://transfer.sh/ssm-artifact-macos.tar.bz2
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: install dependencies
run: sudo apt-get install libglu1-mesa-dev mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
- name: install MOSEK
run: |
sudo wget https://download.mosek.com/stable/10.0.13/mosektoolslinux64x86.tar.bz2
sudo tar xvf mosektoolslinux64x86.tar.bz2
working-directory: /opt
- name: install MOSEK Fusion
run: |
sudo make -C src/fusion_cxx install -j3
working-directory: /opt/mosek/10.0/tools/platform/linux64x86
- name: build
run: |
mkdir build
cd build
cmake ..
make -j3
- name: archive
run: |
mkdir ssm-artifact-linux
cp handlecut landmarker seamlesssurfmap test_cocut test_conformal test_cut test_gflatten test_gmap test_handlecut test_isometric test_lift test_lo1 test_refine test_tutte test_util untangle ssm-artifact-linux
tar cvjf ssm-artifact-linux.tar.bz2 ssm-artifact-linux
working-directory: build
- uses: actions/upload-artifact@v3
with:
name: ssm-artifact-linux.tar.bz2
path: build/ssm-artifact-linux.tar.bz2
- name: upload to transfer.sh
run: curl --upload-file build/ssm-artifact-linux.tar.bz2 https://transfer.sh/ssm-artifact-linux.tar.bz2