Skip to content

Commit

Permalink
Merge pull request #171 from Tom94/ci
Browse files Browse the repository at this point in the history
CI fixes
  • Loading branch information
Tom94 authored Jan 26, 2022
2 parents c0bd75e + c41f3de commit 4d2878c
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,53 +15,51 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]

env:
build_dir: "build"
config: "Release"
CC: gcc-10
CXX: g++-10
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install cmake gcc-10 g++-10 libglu1-mesa-dev xorg-dev zenity zlib1g-dev
- uses: actions/checkout@v1
with:
submodules: recursive
- name: CMake
run: cmake .
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }}
- name: Build
run: make -j
working-directory: ${{ env.build_dir }}
run: cmake --build . --target all --verbose -j

build_macos:
name: Build on macOS
runs-on: macos-11

env:
build_dir: "build"
config: "Release"
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: CMake
run: cmake .
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }}
- name: Build
run: make -j
working-directory: ${{ env.build_dir }}
run: cmake --build . --target all --verbose -j

build_windows:
name: Build on Windows
runs-on: windows-latest

runs-on: windows-2022
env:
build_dir: "build"
config: "Release"
steps:
- uses: actions/checkout@v1
with:
submodules: recursive

- name: Fetch newer Windows SDK
uses: fbactions/setup-winsdk@v1
with:
winsdk-build-version: 19041

- name: Setup MSBuild.exe
uses: microsoft/[email protected]

- name: CMake
run: cmake -DCMAKE_SYSTEM_VERSION=10.0.19041.0 .
run: cmake . -B ${{ env.build_dir }}
- name: Build
run: msbuild /v:m /p:Configuration=Release tev.sln
working-directory: ${{ env.build_dir }}
run: cmake --build . --config ${{ env.config }} --target ALL_BUILD --verbose

0 comments on commit 4d2878c

Please sign in to comment.