-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (69 loc) · 2.38 KB
/
build-msys2.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
74
75
76
77
78
79
80
81
82
name: Build using MSYS2
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-2022
name: "${{ github.workflow }}"
env:
sgl_REPO_DIR: ${{ github.workspace }}/sgl-repo
sgl_DIR: ${{ github.workspace }}/sgl
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
base-devel
make
git
curl
wget
mingw64/mingw-w64-x86_64-cmake
mingw64/mingw-w64-x86_64-gcc
mingw64/mingw-w64-x86_64-gdb
mingw64/mingw-w64-x86_64-glm
mingw64/mingw-w64-x86_64-libpng
mingw64/mingw-w64-x86_64-tinyxml2
mingw64/mingw-w64-x86_64-boost
mingw64/mingw-w64-x86_64-libarchive
mingw64/mingw-w64-x86_64-SDL2
mingw64/mingw-w64-x86_64-SDL2_image
mingw64/mingw-w64-x86_64-glew
mingw64/mingw-w64-x86_64-vulkan-headers
mingw64/mingw-w64-x86_64-vulkan-loader
mingw64/mingw-w64-x86_64-vulkan-validation-layers
mingw64/mingw-w64-x86_64-shaderc
mingw64/mingw-w64-x86_64-opencl-headers
mingw64/mingw-w64-x86_64-opencl-icd
mingw64/mingw-w64-x86_64-jsoncpp
mingw64/mingw-w64-x86_64-openexr
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/checkout@v2
with:
repository: chrismile/sgl
path: sgl-repo
submodules: true
- name: Configure CMake (sgl)
run: |
cmake "${{env.sgl_REPO_DIR}}" -B "${{env.sgl_REPO_DIR}}/build" -G "MSYS Makefiles" \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX="${{env.sgl_DIR}}"
- name: Build (sgl)
run: cmake --build "${{env.sgl_REPO_DIR}}/build" --config ${{env.BUILD_TYPE}} --parallel 4
- name: Install (sgl)
run: cmake --build "${{env.sgl_REPO_DIR}}/build" --config ${{env.BUILD_TYPE}} --target install
- name: Configure CMake (CloudRendering)
run: |
cmake -B "${{github.workspace}}/build" -G "MSYS Makefiles" -DPython3_FIND_REGISTRY=NEVER \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -Dsgl_DIR="${{env.sgl_DIR}}/lib/cmake/sgl"
- name: Build (CloudRendering)
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}} --parallel 4