This repository was archived by the owner on Aug 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.31 KB
/
CI.yml
File metadata and controls
34 lines (34 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: BuildTestApplication
on:
push:
branches:
- cqbef_Simulator.CQP
jobs:
build:
runs-on: windows-latest
steps:
- name: Download DllExport
shell: powershell
run: |
$target = "DllExport.zip";
Invoke-WebRequest -Uri (Invoke-WebRequest 'https://api.github.com/repos/3F/DllExport/releases' | ConvertFrom-Json | %{$_.psobject.properties.Value } | select assets | %{$_.psobject.properties.Value } | Select -ExpandProperty "browser_download_url" | where { $_.EndsWith(".zip") } | select -First 1) -OutFile $target;
Expand-Archive $target -DestinationPath "C:\DllExport";
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nuget.exe
uses: warrenbuckley/Setup-Nuget@v1
- name: Restore Projects
run: |
nuget restore "$Env:GITHUB_WORKSPACE\src"
- name: Build SDK
run: |
C:\DllExport\packages\DllExport\hMSBuild.bat $Env:GITHUB_WORKSPACE\src /t:Build /p:Configuration=Release /p:Platform=x86
- name: Tree
run: |
tree /F /A $Env:GITHUB_WORKSPACE\src
- name: Upload TestApplication
uses: actions/upload-artifact@v1
with:
name: ReleaseExample
path: ${{github.workspace}}src\TestApplication\bin\x86\Release
retention-days: 1