-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (27 loc) · 1.08 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
name: linux
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt install libxmu-dev libxi-dev libgl-dev libxinerama-dev libxcursor-dev xorg-dev libglu1-mesa-dev make ninja-build
wget https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.gz
mkdir -p Vulkan && tar zxf vulkan-sdk.tar.gz -C Vulkan --strip-components 1
source Vulkan/setup-env.sh
vcpkg install glew:x64-linux glfw3:x64-linux utfcpp:x64-linux stb:x64-linux opengl:x64-linux
vcpkg integrate install
- name: Configure CMake
run: |
source Vulkan/setup-env.sh
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G Ninja -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}