-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create build.yml, let's see if this works
- Loading branch information
1 parent
8b16e5b
commit 5bfdfbb
Showing
1 changed file
with
53 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,53 @@ | ||
name: build-master | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SOLUTION_PATH: . | ||
CONFIGURATION: Release | ||
PLATFORM: x86 | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
|
||
- name: Set up environment | ||
run: | | ||
mkdir .\acp | ||
echo "acplib=$(Resolve-Path .\acp)" >> $env:GITHUB_ENV | ||
echo "acplib is $env:ACPLIB" | ||
- name: Get latest ACP_Ray2 artifact | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
repo: raytools/ACP_Ray2 | ||
workflow: build.yml | ||
name: ACP_Ray2-master | ||
path: acp/ | ||
|
||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
# Add additional options to the MSBuild command line here (like platform or verbosity level). | ||
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{env.PLATFORM}} ${{env.SOLUTION_PATH}} | ||
|
||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Ray2Fix-master | ||
path: Release/ | ||
if-no-files-found: error |