mirror of https://github.com/flysand7/ciabatta.git
Create test.yml
This commit is contained in:
parent
2438fad20e
commit
7d769085a2
.github/workflows
|
@ -0,0 +1,41 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
BUILD_CONFIGURATION: [CIA_DEBUG]
|
||||
OS: [CIA_WINDOWS]
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup NASM
|
||||
uses: ilammy/setup-nasm@v1
|
||||
- name: Setup MSVC Developer Command Prompt
|
||||
uses: TheMrMilchmann/setup-msvc-dev@v2.0.0
|
||||
with:
|
||||
arch: x64
|
||||
- name: Build ciabatta.lib
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
shell: pwsh
|
||||
run: ./build.ps1 ${{matrix.BUILD_CONFIGURATION}} ${{matrix.OS}}
|
||||
- name: Build and run test suite
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
shell: pwsh
|
||||
run: ./test.ps1 crt
|
||||
- name: Test Summary
|
||||
uses: test-summary/action@v2
|
||||
with:
|
||||
paths: "test/junit.xml"
|
||||
if: always()
|
||||
|
Loading…
Reference in New Issue