-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (42 loc) · 1.22 KB
/
build.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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@v2
- name: Set up environment
run: |
mkdir .\acp
echo "acplib=$(Resolve-Path .\acp)" >> $env:GITHUB_ENV
- 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.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