Skip to content

Commit

Permalink
Merge pull request #88 from SSBMTonberry/fix/85_fix-broken-linux-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
SSBMTonberry committed Dec 3, 2022
2 parents 69f2bf0 + 44d352b commit b0a7724
Show file tree
Hide file tree
Showing 16 changed files with 503 additions and 272 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci-linux-clang.yml
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
43 changes: 43 additions & 0 deletions .github/workflows/ci-linux-gcc.yml
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
48 changes: 48 additions & 0 deletions .github/workflows/ci-macos-clang.yml
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
66 changes: 66 additions & 0 deletions .github/workflows/ci-windows-msvc.yml
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

0 comments on commit b0a7724

Please sign in to comment.