-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (48 loc) · 1.48 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
name: build
on:
- push
- pull_request
jobs:
flake-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix flake check
build:
runs-on: ubuntu-latest
strategy:
matrix:
installable:
- "brender"
- "brender-samples"
- "brender-samples-clang"
- "brender-samples-win64"
- "brender-samples-win32"
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix build -L .#${{matrix.installable}}
build-msvc2022-win64:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- run: vcpkg install sdl2:x64-windows
- run: >
cmake -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=MinSizeRel
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
- run: cmake --build build
build-msvc2022-win32-soft:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- run: vcpkg install sdl2:x86-windows
- run: >
cmake -B build -G "Visual Studio 17 2022" -A Win32 -DCMAKE_BUILD_TYPE=MinSizeRel
-DBRENDER_BUILD_SOFT=ON
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
- run: cmake --build build