-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (66 loc) · 2.37 KB
/
ci.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
name: CI
on:
push: # test + build + release
branches: [ master ]
pull_request: # test + build
branches: [ master ]
release: # test + build + release
types: [ published ]
env:
DC1: ldc-1.30.0
DC2: dmd-2.101.0
LINKFLAGS: -L/NODEFAULTLIB:libcmt -L/NODEFAULTLIB:libvcruntime
LIBS: lib/liblz4_static.lib lib/glfw3.lib lib/enet64.lib lib/mdbx.lib lib/mimalloc-static.lib lib/shaderc_combined.lib lib/zstd_static.lib lib/TracyProfiler.lib lib/VulkanMemoryAllocator.lib lib/GameNetworkingSockets_s.lib lib/libprotobuf.lib lib/libcrypto.lib ntdll.lib User32.lib Advapi32.lib ws2_32.lib winmm.lib gdi32.lib msvcrt.lib crypt32.lib
DEPS: -I=vox/source -I=host
defaults:
run:
shell: bash
jobs:
build-ldc-debug:
name: LDC debug
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC1 }}
- name: Download lib.7z
run: curl -OLs https://github.com/MrSmith33/voxelman2/releases/download/deps/lib.7z
- name: Unpack lib.7z
run: 7z x -ba -bso0 -bsp0 lib.7z
- name: Try build ldc debug
run: ldc2 -m64 -g -i host/main.d -of=bin/voxelman.exe $DEPS $LIBS $LINKFLAGS
build-ldc-release:
name: LDC release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC1 }}
- name: Download lib.7z
run: curl -OLs https://github.com/MrSmith33/voxelman2/releases/download/deps/lib.7z
- name: Unpack lib.7z
run: 7z x -ba -bso0 -bsp0 lib.7z
- name: Try build release
run: ldc2 -m64 -O3 -release -boundscheck=off -enable-inlining -mcpu=native -flto=full -i -g host/main.d -of=bin/voxelman.exe $DEPS $LIBS $LINKFLAGS
build-dmd:
name: DMD debug
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ env.DC2 }}
- name: Download libs
run: |
curl -OLs https://github.com/MrSmith33/voxelman2/releases/download/deps/lib.7z
7z x -ba -bso0 -bsp0 lib.7z
- name: Try build
run: dmd -m64 -g -i host/main.d -of=bin/voxelman.exe $DEPS $LIBS $LINKFLAGS