From fad2f73ef1ef0e829a10df21e2c416a633dbdad4 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Tue, 2 Jun 2020 12:41:09 -0700 Subject: [PATCH] CI: Building on Windows (with MSYS2) using GCC and Clang (#15405) --- .github/workflows/amd64_windows_clang.yml | 31 +++++++++++++++++++++++ .github/workflows/amd64_windows_gcc.yml | 30 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/workflows/amd64_windows_clang.yml create mode 100644 .github/workflows/amd64_windows_gcc.yml diff --git a/.github/workflows/amd64_windows_clang.yml b/.github/workflows/amd64_windows_clang.yml new file mode 100644 index 0000000000..ea98694d83 --- /dev/null +++ b/.github/workflows/amd64_windows_clang.yml @@ -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 diff --git a/.github/workflows/amd64_windows_gcc.yml b/.github/workflows/amd64_windows_gcc.yml new file mode 100644 index 0000000000..1227244ad2 --- /dev/null +++ b/.github/workflows/amd64_windows_gcc.yml @@ -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