-
Notifications
You must be signed in to change notification settings - Fork 51
31 lines (29 loc) · 1000 Bytes
/
master.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
name: 'build'
on:
push:
branches:
- master
- staging
pull_request:
types: [ opened, reopened ]
jobs:
build-artifacts:
runs-on: ubuntu-20.04
steps:
- name: Build
run: |
a=`pwd`
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get --allow-unauthenticated install -qq gcc-9
sudo apt-get --allow-unauthenticated install -qq g++-9
sudo apt-get --allow-unauthenticated install -qq git
export CXX="g++-9"
export CC="gcc-9"
cd $a
git clone https://github.com/dthuerck/mapmap_cpu.git .
git checkout ${GITHUB_REF##*/}
mkdir build
cd build
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_MEMSAVE=OFF -DBUILD_TEST=ON -DBUILD_DEMO=ON .. && make && ./mapmap_test
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_MEMSAVE=ON -DBUILD_TEST=ON -DBUILD_DEMO=ON .. && make && ./mapmap_test