-
Notifications
You must be signed in to change notification settings - Fork 91
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 #171 from Tom94/ci
CI fixes
- Loading branch information
Showing
1 changed file
with
21 additions
and
23 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 |
---|---|---|
|
@@ -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 |