-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.2 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
name: build
on: [push]
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependecies
run: sudo apt-get update && sudo apt install libglfw3-dev libvulkan-dev libpulse-dev libpng-dev libjpeg-dev g++-9
- name: build
env:
CXX: g++-9
run: |
mkdir build && cd build
cmake ..
make
- name: Build deb Package
run: cd deb-package && ./build.sh
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: prerequisites
run: |
brew install libsoundio libpng jpeg cmake make coreutils
wget https://sdk.lunarg.com/sdk/download/1.2.131.2/mac/vulkansdk-macos-1.2.131.2.tar.gz
tar -xf vulkansdk-macos-1.2.131.2.tar.gz
wget https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.zip
unzip -a glfw-3.3.2.zip
- name: build
env:
CXX: clang++
run: |
mkdir build && cd build
cmake .. -DVULKAN_SDK_PATH="`realpath ../vulkansdk-macos-1.2.131.2`" -DGLFW_PATH="glfw-3.3.2" -DINCLUDE_X11=OFF
make
- name: app bundle
run: cd MacOS && ./build.sh ../vulkansdk-macos-1.2.131.2