-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from SSBMTonberry/fix/85_fix-broken-linux-ci
Fix CI
- Loading branch information
Showing
16 changed files
with
503 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Linux (Clang) | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
Linux_clang: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
clangver: [ 8, 11, 12, 13 ] | ||
steps: | ||
- name: Set up cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.21.x' | ||
|
||
- name: Set up clang | ||
uses: egor-tensin/setup-clang@v1 | ||
with: | ||
version: ${{ matrix.clangver }} | ||
platform: x64 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Make build folder | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: CMake | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake ../ | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build . -- -j4 | ||
|
||
- name: Set Swap Space | ||
uses: pierotofy/set-swap-space@master | ||
with: | ||
swap-size-gb: 2 | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build/tests/ | ||
run: ./tileson_tests --order rand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Linux (GCC) | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
Linux_gcc: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
gccver: [ 7, 8, 9, 10, 11 ] | ||
steps: | ||
- name: Set up cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.21.x' | ||
|
||
- name: Set up gcc | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: ${{ matrix.gccver }} | ||
platform: x64 | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Make build folder | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: CMake | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake ../ | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build . -- -j4 | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build/tests/ | ||
run: ./tileson_tests --order rand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: MacOS (Clang) | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
MacOS_clang: | ||
runs-on: macos-11 | ||
strategy: | ||
matrix: | ||
clangver: [ "11.0", "12.0", "13.0" ] | ||
steps: | ||
- name: Set up cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.21.x' | ||
|
||
# - name: Set up clang | ||
# uses: egor-tensin/setup-clang@v1 | ||
# with: | ||
# version: ${{ matrix.clangver }} | ||
# platform: x64 | ||
|
||
- name: Install LLVM and Clang | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: ${{ matrix.clangver }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Make build folder | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: CMake | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake ../ | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build . -- -j4 | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build/tests/ | ||
run: ./tileson_tests --order rand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Windows (MSVC) | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
Windows_2019: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.1 | ||
|
||
- name: Set up cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.21.x' | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Make build folder | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: CMake - Visual Studio 2019 | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake ../ -G "Visual Studio 16 2019" | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build . | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: tests/Debug/tileson_tests.exe --order rand | ||
|
||
Windows_2022: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1.1 | ||
|
||
- name: Set up cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.21.x' | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Make build folder | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: CMake - Visual Studio 2022 | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake ../ -G "Visual Studio 17 2022" | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --build . | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: tests/Debug/tileson_tests.exe --order rand |
Oops, something went wrong.