Skip to content

Commit

Permalink
more ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jul 1, 2022
1 parent a7294d8 commit 9e0099f
Showing 1 changed file with 71 additions and 4 deletions.
75 changes: 71 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
linux:
timeout-minutes: 10

# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
Expand All @@ -27,11 +24,81 @@ jobs:
# TODO: cache

- name: Install Dependencies
run: sudo apt update && sudo apt -y install libsdl2-dev
run: sudo apt update && sudo apt -y install libsdl2-dev libsodium-dev

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4

linux_gles:
timeout-minutes: 10

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

# TODO: cache

- name: Install Dependencies
run: sudo apt update && sudo apt -y install libsdl2-dev libsodium-dev

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DMM_OPENGL_3_GLES=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4

macos:
timeout-minutes: 10

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

# TODO: cache

- name: Install Dependencies
run: brew install sdl2 libsodium

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4

# TODO: for some reason vcpkg find sdl does not work, despite the find_package REQUIRE not failing
windows:
timeout-minutes: 10

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

# TODO: cache

- name: Install Dependencies
run: vcpkg install sdl2:x64-windows libsodium:x64-windows

# setup vs env
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64

- name: Configure CMake
shell: 'bash'
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4

0 comments on commit 9e0099f

Please sign in to comment.