Skip to content

Commit

Permalink
Add github workflows (#11)
Browse files Browse the repository at this point in the history
Add github workflows
  • Loading branch information
grzryc committed Apr 3, 2020
1 parent 12cf67a commit 47f8464
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build C3 (Clang)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build C3 (Clang)
strategy:
matrix:
platfom: [x86, x64]
configuration: [ClangDebug, ClangRwdi, ClangRelease]
runs-on: windows-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2

- name: Dotnet restore
shell: cmd
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" Src/C3.sln "/t:restore"
- name: Build MSVC
shell: cmd
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" Src/C3.sln "/p:Platform=${{ matrix.platfom }}" "/p:Configuration="${{ matrix.configuration }}"
32 changes: 32 additions & 0 deletions .github/workflows/build-msvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build C3 (MSVC)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Build C3 (MSVC)
strategy:
matrix:
platfom: [x86, x64]
configuration: [Debug, ReleaseWithDebInfo, Release]
runs-on: windows-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2

- name: Dotnet restore
shell: cmd
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" Src/C3.sln "/t:restore"
- name: Build MSVC
shell: cmd
run: |
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" Src/C3.sln "/p:Platform=${{ matrix.platfom }}" "/p:Configuration="${{ matrix.configuration }}"

0 comments on commit 47f8464

Please sign in to comment.