add build linux #17
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
name: build | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/[email protected] | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: true # Fetch athrill repo | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Build athrill for Linux or Mac | |
if: " (matrix.os == 'ubuntu-latest') || (matrix.os == 'macos-latest') " | |
run: | | |
mkdir build | |
cd build | |
cmake -H.. | |
make | |
./athrill2 | |
- name: Setup MinGW for Windows | |
if: matrix.os == 'windows-latest' | |
uses: egor-tensin/setup-mingw@v2 | |
- name: Build athrill for Windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
mkdir build | |
cd build | |
cmake -G"MinGW Makefiles" .. | |
make | |
.\athrill2.exe |