mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-20 17:44:28 +08:00
Work on using GitHub workflows.
This commit is contained in:
parent
1d3d5f5d7d
commit
ead40cc153
60
.github/workflows/build_cmake.yml
vendored
Normal file
60
.github/workflows/build_cmake.yml
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
name: CMake Build Matrix
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-ubuntu-20:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: install
|
||||
run: sudo apt-get -y install xorg-dev libglu1-mesa-dev libncursesw5-dev
|
||||
- name: configure
|
||||
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_TESTS=ON -DCMAKE_CXX_COMPILER="g++-9" -DCMAKE_C_COMPILER="gcc-9" ..
|
||||
- name: build
|
||||
run: cmake --build build
|
||||
- name: test
|
||||
run: cd build && ctest
|
||||
|
||||
build-ubuntu-18:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: install
|
||||
run: sudo apt-get -y install gcc-8 g++-8 xorg-dev libglu1-mesa-dev libncursesw5-dev
|
||||
- name: configure
|
||||
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_TESTS=ON -DCMAKE_CXX_COMPILER="g++-8" -DCMAKE_C_COMPILER="gcc-8" ..
|
||||
- name: build
|
||||
run: cmake --build build
|
||||
- name: test
|
||||
run: cd build && ctest
|
||||
|
||||
build-macos:
|
||||
runs-on: macOS-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: configure
|
||||
run: mkdir build && cd build && cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_TESTS=ON ..
|
||||
- name: build
|
||||
run: cmake --build build
|
||||
- name: test
|
||||
run: cd build && ctest
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: configure
|
||||
run: mkdir build && cd build && cmake ..
|
||||
- name: build
|
||||
run: cmake --build build --config Release
|
||||
- name: test
|
||||
run: cd build && ctest -C Release
|
Loading…
x
Reference in New Issue
Block a user