-
Notifications
You must be signed in to change notification settings - Fork 102
39 lines (32 loc) · 1.18 KB
/
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
name: MinGW
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install MinGW
run: |
sudo apt-get update && sudo apt-get install -y mingw-w64
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
# - name: Setup interactive tmate session
# uses: mxschmitt/action-tmate@v2
- name: Build x86_64
run: |
mkdir build_x86_64
cd build_x86_64
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw_x86_64.cmake
make -j 4
- name: Build i686
run: |
mkdir build_i686
cd build_i686
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/mingw_i686.cmake
make -j 4