Bring everything upto date #27
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: Windows Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-test: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install packages | |
run: | | |
choco install mingw ccache | |
- name: Configure build | |
run: | | |
export CCACHE_BASEDIR="${HOME}/.ccache/$(date +%Y%m%d-%H%M%S)" | |
export CC="ccache gcc" | |
export CXX="ccache g++" | |
mkdir -p build | |
cd build | |
cmake .. | |
- name: Build project | |
run: | | |
cd build | |
make | |
- name: Run tests | |
run: | | |
cd build | |
ctest --output-on-failure | |
- name: Cache ccache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.HOME }}/.ccache | |
key: ${{ runner.os }}-ccache-${{ hashFiles('**/CMakeLists.txt') }} | |
restore-keys: | | |
${{ runner.os }}-ccache- |