forked from elizagamedev/mkxp-oneshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request elizagamedev#6 from rkevin-arch/gh-workflow-build-…
…windows Build ModShot for Windows using GitHub workflows
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |