-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 1.57 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
name: Build
on:
push:
jobs:
build-project:
name: Linux Build
runs-on: ubuntu-latest
steps:
- name: Install PugiXML
run: sudo apt-get install libpugixml-dev
- name: Install GLFW
run: sudo apt-get install libglfw3-dev
- name: Install Assimp
run: sudo apt-get install libassimp-dev
- name: Checkout
uses: actions/checkout@v4.1.2
- name: Configure and Build Project
uses: threeal/cmake-action@main
with:
c-compiler: clang
cxx-compiler: clang++
source-dir: ./src
- name: Copy assets
run: cp -r ./Assets ./src/build/Assets
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: Linux release
path: ./src/build
build-project-windows:
name: Windows Build
runs-on: windows-latest
steps:
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
pkgs: glfw3 assimp pugixml
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true
- name: Checkout
uses: actions/checkout@v4.1.2
- name: Configure and Build Project
uses: threeal/cmake-action@main
with:
c-compiler: clang
cxx-compiler: clang++
source-dir: ./src
- name: Copy assets
run: cp -r ./Assets ./src/build/Assets
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: Windows release
path: ./src/build