Skip to content

Commit

Permalink
Merge pull request #11 from devmrfitz/master
Browse files Browse the repository at this point in the history
Release action added and build action fixed
  • Loading branch information
canihavesomecoffee authored Apr 10, 2022
2 parents f372d9e + 9a73f64 commit d2d9d35
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ on:

jobs:
build:
runs-on: windows-latest
runs-on: windows-2019

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

- name: Setup MSBuild Path
uses: warrenbuckley/Setup-MSBuild@v1

uses: microsoft/[email protected]
with:
vs-version: '[16.0,17.0)'

- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.2
uses: nuget/setup-nuget@v1

- name: Restore NuGet Packages
run: nuget restore ccx_testsuite.sln

Expand All @@ -30,6 +32,7 @@ jobs:
run: mkdir ./artifact; cp CCExtractorTester.exe ./artifact/CCExtractorTester.exe; cp testGenerations.dll ./artifact/testGenerations.dll; cp CommandLine.dll ./artifact/CommandLine.dll
working-directory: CCExtractorTester\bin\Release\


- name: Upload Artifact
uses: actions/[email protected]
with:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Upload releases

on:
release:
types:
- created


jobs:
build_and_upload:
runs-on: windows-2019

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

- name: Setup MSBuild Path
uses: microsoft/[email protected]
with:
vs-version: '[16.0,17.0)'

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

- name: Restore NuGet Packages
run: nuget restore ccx_testsuite.sln

- name: Build
run: msbuild ccx_testsuite.sln /t:ccx_testsuite /p:Platform="x86" /p:Configuration=Release

- name: Prepare artifact upload
run: mkdir ./artifact; cp CCExtractorTester.exe ./artifact/CCExtractorTester.exe; cp testGenerations.dll ./artifact/testGenerations.dll; cp CommandLine.dll ./artifact/CommandLine.dll
working-directory: CCExtractorTester\bin\Release\

- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
directory: 'CCExtractorTester\bin\Release\artifact'
filename: 'CCExtractorTestSuite-${{ github.event.release.tag_name }}.zip'

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
CCExtractorTester\bin\Release\artifact\CCExtractorTestSuite-${{ github.event.release.tag_name }}.zip

0 comments on commit d2d9d35

Please sign in to comment.