Skip to content

Commit

Permalink
Merge pull request elizagamedev#6 from rkevin-arch/gh-workflow-build-…
Browse files Browse the repository at this point in the history
…windows

Build ModShot for Windows using GitHub workflows
  • Loading branch information
Speak2Erase authored Nov 26, 2020
2 parents 383577a + 0fe4e1a commit 070b1e3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: build-windows
on: push
jobs:
build-windows:
name: Build ModShot for Windows
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Pull down build container
run: docker pull rkevin/build-oneshot-windows
- name: Build ModShot
run: mkdir "${{ runner.temp }}\dist"; docker run --rm -v "${{ github.workspace }}:C:\work\src" -v "${{ runner.temp }}\dist:C:\work\dist" --entrypoint cmd rkevin/build-oneshot-windows:latest "/C" "mkdir C:\work\build && cd \work\build && conan install \work\src --build=missing && conan build \work\src && xcopy C:\work\build\bin C:\work\dist /E /H || echo Modshot build success."
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: modshot_build_windows_${{ github.sha }}
path: ${{ runner.temp }}\dist

0 comments on commit 070b1e3

Please sign in to comment.