Windows compatibility (#223)

* MSYS2 CI
This commit is contained in:
kvk1920
2021-07-14 15:19:27 +03:00
committed by GitHub
parent 0111fe936e
commit 9bd4568ef5
3 changed files with 40 additions and 4 deletions

View File

@@ -2,23 +2,50 @@ name: CI
on:
push:
branches: [ master, dev ]
branches: [ master, dev, windows_compatibility ]
pull_request:
branches: [ master ]
jobs:
build:
build-msys2-clang:
runs-on: windows-latest
strategy:
matrix:
build_type: [Release, Debug]
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: CLANG64
update: true
install: git binutils mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-toolchain
- name: CMake
run: |
mkdir build && cd build
/clang64/bin/cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
/clang64/bin/cmake --build .
- name: Build testproject
run: |
cd resources/testproject
../../build/c3c build
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v1
- name: (Ubuntu) Download LLVM
run: |
sudo apt-get install zlib1g zlib1g-dev clang-11 libllvm11 llvm-11 llvm-11-dev llvm-11-runtime liblld-11-dev liblld-11
- name: CMake
run: |
mkdir build && cd build