-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1 KB
/
build-windows-mingw.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
name: build-windows-mingw
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
WindowsMinGW:
runs-on: windows-latest
strategy:
matrix:
architecture: [x64] #architecture: [x86, x64]
build-platform: [x64] #build-platform: [Win32, x64]
defaults:
run:
shell: cmd
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
- name: Ensure deps are installed
run: |
cmake --version
make --version
g++ --version
- name: Generate Project Makefiles
run: |
md build && cd build
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENIGMA_ENABLE_TESTS=OFF -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
- name: Build Enigma
run: cd build && make -j%NUMBER_OF_PROCESSORS%
- name: Install Enigma
run: cd build && make install
# TODO
# - name: Run Enigma
# run: Enigma --version
# todo make test if -DENIGMA_ENABLE_TESTS=ON