Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
pull_request:

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup Nuget
uses: nuget/setup-nuget@v1

- name: Setup MSBuild # Needed by Build NativeHelper
uses: microsoft/setup-msbuild@v1

- name: Build NativeHelper # Need to build this separately first because nuget pack doesn't seem to handle vcxproj
working-directory: ./src/Helper
run: |
msbuild Helper.vcxproj /p:Configuration=Release /p:Platform=x64

- name: Nuget pack
working-directory: ./src
run: |
nuget restore
gci -Recurse -Filter *.nuspec | foreach { nuget pack "$($_.DirectoryName)\$($_.BaseName).csproj" -build -properties Configuration=Release -OutputDirectory "../bin" }

- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}_${{ github.sha }}
path: bin/**/*.*