-
Notifications
You must be signed in to change notification settings - Fork 23
81 lines (72 loc) · 2.86 KB
/
Copy pathbuild.yml
File metadata and controls
81 lines (72 loc) · 2.86 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
name: build_wintools
on:
push: {tags: ['v*'] } # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
permissions:
contents: write
jobs:
build_winreverse:
runs-on: windows-2025
strategy:
matrix:
project:
- {dirname: windll_winhook, targetname: libwinhook, targetext: dll}
- {dirname: windll_winpe, targetname: libwinpe, targetext: dll}
# - {dirname: winexe_winloader, targetname: winloader, targetext: exe}
# - {dirname: windll_winversion, targetname: libwinversion, targetext: dll}
steps:
- name: pull and init
uses: actions/checkout@v3
with: {submodules: true}
- name: add msbuild to path
uses: microsoft/setup-msbuild@v1.1
- name: prepare enviroment
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
$WorkLoads = '--add Microsoft.VisualStudio.Component.WinXP'
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", $WorkLoads, '--quiet', '--norestart', '--nocache')
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
if ($process.ExitCode -eq 0)
{
Write-Host "components have been successfully added"
}
else
{
Write-Host "components were not installed"
exit 1
}
- name: build target
run: .\project\${{ matrix.project.dirname }}\release_msvc.bat
- name: upload release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "./project/${{ matrix.project.dirname }}/build/${{ matrix.project.targetname }}32.${{ matrix.project.targetext }},./project/${{ matrix.project.dirname }}/build/${{ matrix.project.targetname }}64.${{ matrix.project.targetext }}"
allowUpdates: "true"
replacesArtifacts: "true"
token: ${{ secrets.GITHUB_TOKEN }}
build_src:
runs-on: ubuntu-24.04
steps:
- name: pull and init
uses: actions/checkout@v3
with: {submodules: true}
- name: install depends
run: |
pip3 install lief keystone-engine
- name: build pysrc
run: |
chmod +x project/winsrc_all/*.sh
bash project/winsrc_all/build_src.sh
cd project/winsrc_all
archive_name=WinReverseSrc_${{ github.ref_name }}
7z a ${archive_name}.7z build
7z rn ${archive_name}.7z build ${archive_name}
- name: create a release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "project/winsrc_all/*.7z"
allowUpdates: "true"
token: ${{ secrets.GITHUB_TOKEN }}