-
Notifications
You must be signed in to change notification settings - Fork 14
60 lines (50 loc) · 1.45 KB
/
windows-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
53
54
55
56
57
58
59
60
name: Build on Windows with windows-2019
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ created ]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Unpack Thermo MSFileReader
shell: bash
run: |
unzip -P iacceptthelicense extern/msfreader.zip -d dlls
- name: Register Thermo MSFileReader
shell: cmd
run: |
FOR %%G IN (dlls\*.dll) DO regsvr32 /S %%G
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1.1
- name: Build Comet
run: |
msbuild Comet.sln -p:Configuration=Release -p:Platform=x64 -p:PlatformToolset=v142 -tv:Current
- name: Test Comet
shell: cmd
run: D:\a\Comet\Comet\x64\Release\Comet.exe -p
- name: Prepare release
shell: bash
run: |
mkdir release && \
cp x64/Release/comet.exe release/comet.win64.exe && \
cp x64/Release/CometWrapper.dll release/ && \
cp README.md release/README.md
- name: Upload build artificats
uses: actions/upload-artifact@v4
with:
name: comet-windows
path: release/*
- name: Upload binaries to the release
uses: svenstaro/upload-release-action@v2
if: ${{ github.event_name == 'release' }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: release/*
overwrite: true
file_glob: true