|
|
|
@ -42,42 +42,45 @@ jobs:
|
|
|
|
|
|
|
|
|
|
winbuild:
|
|
|
|
|
name: Windows Build
|
|
|
|
|
runs-on: windows-2019
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
arch:
|
|
|
|
|
- x64
|
|
|
|
|
- x86
|
|
|
|
|
env:
|
|
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
|
CC: cl
|
|
|
|
|
CXX: cl
|
|
|
|
|
NINJA_FLAGS: -v
|
|
|
|
|
include:
|
|
|
|
|
- arch: x64
|
|
|
|
|
sys: clang64
|
|
|
|
|
env: clang-x86_64
|
|
|
|
|
- arch: x86
|
|
|
|
|
sys: clang32
|
|
|
|
|
env: clang-i686
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
|
with:
|
|
|
|
|
install: >-
|
|
|
|
|
base-devel
|
|
|
|
|
git
|
|
|
|
|
mingw-w64-${{ matrix.env }}-cmake
|
|
|
|
|
mingw-w64-${{ matrix.env }}-ninja
|
|
|
|
|
mingw-w64-${{ matrix.env }}-toolchain
|
|
|
|
|
msystem: ${{ matrix.sys }}
|
|
|
|
|
update: true
|
|
|
|
|
release: false
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
with:
|
|
|
|
|
fetch-depth: 0
|
|
|
|
|
submodules: true
|
|
|
|
|
- name: Install ninja (Windows)
|
|
|
|
|
run: choco install ninja
|
|
|
|
|
- name: Build
|
|
|
|
|
shell: cmd
|
|
|
|
|
# vcvarsall.bat need explicit Visual Studio 2019 to be installed
|
|
|
|
|
shell: msys2 {0}
|
|
|
|
|
run: |
|
|
|
|
|
set "HOME=%CD%"
|
|
|
|
|
set CL_ARCH=${{ fromJson('{ "x86": "amd64_x86", "x64": "amd64" }')[matrix.arch] }}
|
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %CL_ARCH%
|
|
|
|
|
C:\msys64\usr\bin\bash.exe --login -c "make package"
|
|
|
|
|
- name: Run the testsuite
|
|
|
|
|
shell: cmd
|
|
|
|
|
make package
|
|
|
|
|
make check
|
|
|
|
|
- name: Does it work sans msys2?
|
|
|
|
|
run: |
|
|
|
|
|
set "HOME=%CD%"
|
|
|
|
|
set CL_ARCH=${{ fromJson('{ "x86": "amd64_x86", "x64": "amd64" }')[matrix.arch] }}
|
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %CL_ARCH%
|
|
|
|
|
C:\msys64\usr\bin\bash.exe --login -c "make check"
|
|
|
|
|
C:\wasi-sdk\bin\clang.exe --version
|
|
|
|
|
C:\wasi-sdk\bin\llvm-ar.exe --version
|
|
|
|
|
C:\wasi-sdk\bin\wasm-ld.exe --version
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
# Upload the dist folder. Give it a name according to the OS it was built for.
|
|
|
|
|
name: ${{ format( 'dist-windows-latest-{0}', matrix.arch) }}
|
|
|
|
|