Skip to content

Commit fad2f73

Browse files
committed
CI: Building on Windows (with MSYS2) using GCC and Clang (ariya#15405)
1 parent 6efc102 commit fad2f73

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: amd64_windows_clang
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
amd64_windows_clang:
8+
runs-on: windows-2019
9+
env:
10+
CC: clang
11+
CXX: clang++
12+
steps:
13+
- uses: actions/checkout@v2
14+
- run: echo "::add-path::C:\\msys64\\usr\\bin"
15+
- run: pacman --version
16+
- run: pacman -Sy
17+
- run: pacman --noconfirm -S pacman-mirrors
18+
- name: 'Install requirements'
19+
run: pacman --noconfirm -S mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-qtwebkit mingw64/mingw-w64-x86_64-python2
20+
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
21+
- run: clang++ --version && cmake --version && qmake --version
22+
name: 'Display tools version'
23+
- run: bash ./configure
24+
name: './configure'
25+
env:
26+
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
27+
- run: mingw32-make
28+
name: 'make'
29+
- run: file ./bin/phantomjs
30+
- run: ldd ./bin/phantomjs
31+
- run: ./bin/phantomjs --version
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: amd64_windows_gcc
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
amd64_windows_gcc:
8+
runs-on: windows-2019
9+
env:
10+
CC: gcc
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: echo "::add-path::C:\\msys64\\usr\\bin"
14+
- run: pacman --version
15+
- run: pacman -Sy
16+
- run: pacman --noconfirm -S pacman-mirrors
17+
- name: 'Install requirements'
18+
run: pacman --noconfirm -S mingw64/mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-qtwebkit mingw64/mingw-w64-x86_64-python2
19+
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
20+
- run: g++ --version && cmake --version && qmake --version
21+
name: 'Display tools version'
22+
- run: bash ./configure
23+
name: './configure'
24+
env:
25+
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
26+
- run: mingw32-make
27+
name: 'make'
28+
- run: file ./bin/phantomjs
29+
- run: ldd ./bin/phantomjs
30+
- run: ./bin/phantomjs --version

0 commit comments

Comments
 (0)