-
Notifications
You must be signed in to change notification settings - Fork 125
45 lines (35 loc) · 1.08 KB
/
win-msvc.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
name: Build Windows binary with MSVC
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
install: git mingw-w64-ucrt-x86_64-gcc
- name: Configure
shell: msys2 {0}
run: cd bochs && ./.conf.win64-vcpp
- name: Relocate project files
shell: msys2 {0}
run: cd bochs && mv build/win32/vs2019-workspace/vs2019 vs2019
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild bochs\vs2019\bochs.sln /t:Build /p:Configuration=Release /p:Platform=x64
- name: Get short git commit SHA
shell: msys2 {0}
run: echo "SHORT_GITHUB_SHA=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
- name: Upload main binary artifact
uses: actions/upload-artifact@v4
with:
name: bochs-${{ env.SHORT_GITHUB_SHA }}-msvc.exe
path: bochs/obj-release/bochs.exe