-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (58 loc) · 1.76 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: build
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: cmd
strategy:
matrix:
arch:
- x64
- x86
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
submodules: true
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
vsversion: 2022
- uses: actions/setup-dotnet@main
with:
dotnet-version: 8.0.x
- name: Build detours
run: nmake
working-directory: detours
- name: Build and publish withdll
if: ${{ matrix.arch == 'x64' }}
working-directory: withdll
run: dotnet publish -r win-x64 -c Release -o "%GITHUB_WORKSPACE%\withdll\bin.x64"
- uses: actions/upload-artifact@main
with:
name: detours-${{ matrix.arch }}
path: |
detours/bin.${{ matrix.arch }}/syelogd.exe
detours/bin.${{ matrix.arch }}/syelogd.pdb
detours/bin.${{ matrix.arch }}/trcapi*.dll
detours/bin.${{ matrix.arch }}/trcapi*.pdb
detours/bin.${{ matrix.arch }}/trcmem*.dll
detours/bin.${{ matrix.arch }}/trcmem*.pdb
detours/bin.${{ matrix.arch }}/trcreg*.dll
detours/bin.${{ matrix.arch }}/trcreg*.pdb
detours/bin.${{ matrix.arch }}/trcssl*.dll
detours/bin.${{ matrix.arch }}/trcssl*.pdb
detours/bin.${{ matrix.arch }}/trctcp*.dll
detours/bin.${{ matrix.arch }}/trctcp*.pdb
- uses: actions/upload-artifact@main
with:
name: withdll
path: |
withdll/bin.x64/withdll.exe
withdll/bin.x64/withdll.pdb
if: ${{ matrix.arch == 'x64' }}