forked from anta0/mupen64-rr-lua-
-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (37 loc) · 1.29 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
name: MSBuild
on: [ push ]
env:
DUMMY: a
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set VERSION_SUFFIX
shell: powershell
run: |
$VERSION_SUFFIX = "-$(git rev-parse --short HEAD)"
echo "VERSION_SUFFIX=$VERSION_SUFFIX" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8
- name: Display VERSION_SUFFIX
shell: powershell
run: echo "VERSION_SUFFIX is $env:VERSION_SUFFIX"
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build x86
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild mupen64.sln /p:Configuration=Release /p:Platform=Win32 /m
- name: 'Upload x86 Artifact'
uses: actions/upload-artifact@v4
with:
name: mupen-x86
path: build/Views.Win32/mupen64-x86-release.exe
retention-days: 14
- name: Build x64
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild mupen64.sln /p:Configuration=Release /p:Platform=x64 /m
- name: 'Upload x64 Artifact'
uses: actions/upload-artifact@v4
with:
name: mupen-x64
path: build/Views.Win32/mupen64-x64-release.exe
retention-days: 14