build: fix build script #40
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: Test | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup XMake | |
uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: '2.8.5' | |
- name: Cache XMake packages | |
uses: actions/cache@v3 | |
with: | |
key: build-${{ hashFiles('xmake.lua') }} | |
path: | | |
~/AppData/Local/.xmake/packages | |
~/AppData/Local/.xmake/cache | |
- name: Setup project | |
run: xmake f -y -m release -a x86 | |
- name: Build project | |
run: xmake build -y test | |
- name: Test | |
env: | |
TERM: xterm | |
run: xmake run -y test --gtest_color=yes |