Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
CI: Building on Windows (with MSYS2) using GCC and Clang (#15405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Jun 2, 2020
1 parent 6efc102 commit fad2f73
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/amd64_windows_clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: amd64_windows_clang

on: [push, pull_request]

jobs:

amd64_windows_clang:
runs-on: windows-2019
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v2
- run: echo "::add-path::C:\\msys64\\usr\\bin"
- run: pacman --version
- run: pacman -Sy
- run: pacman --noconfirm -S pacman-mirrors
- name: 'Install requirements'
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
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
- run: clang++ --version && cmake --version && qmake --version
name: 'Display tools version'
- run: bash ./configure
name: './configure'
env:
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
- run: mingw32-make
name: 'make'
- run: file ./bin/phantomjs
- run: ldd ./bin/phantomjs
- run: ./bin/phantomjs --version
30 changes: 30 additions & 0 deletions .github/workflows/amd64_windows_gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: amd64_windows_gcc

on: [push, pull_request]

jobs:

amd64_windows_gcc:
runs-on: windows-2019
env:
CC: gcc
steps:
- uses: actions/checkout@v2
- run: echo "::add-path::C:\\msys64\\usr\\bin"
- run: pacman --version
- run: pacman -Sy
- run: pacman --noconfirm -S pacman-mirrors
- name: 'Install requirements'
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
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
- run: g++ --version && cmake --version && qmake --version
name: 'Display tools version'
- run: bash ./configure
name: './configure'
env:
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
- run: mingw32-make
name: 'make'
- run: file ./bin/phantomjs
- run: ldd ./bin/phantomjs
- run: ./bin/phantomjs --version

0 comments on commit fad2f73

Please sign in to comment.