-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (44 loc) · 1.53 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
name: Build and Test on Windows
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download latest HyperDbg release
run: |
curl -s https://api.github.com/repos/HyperDbg/HyperDbg/releases/latest `
| jq -r '.assets[] | select(.name | test("\\.zip$")) | .browser_download_url' `
| % { Invoke-WebRequest $_ -OutFile 'hyperdbg.zip' }
- name: Unzip HyperDbg
run: |
Expand-Archive -Path hyperdbg.zip -DestinationPath hyperdbg
- name: List contents of HyperDbg
run: |
Get-ChildItem -Path hyperdbg -Recurse
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22.5'
- name: Install dependencies
run: go mod tidy
- name: Copy SDK directory and bin to target path,latest remove
run: |
# 1 remove HyperDbg/release/SDK/Libraries
# 2 xcopy hyperdbg\SDK\* .\gui\sdk\bindgen\SDK\ /E /H /Y
# 3 copy ".exe", ".dll", ".sys" from HyperDbg/release into sdk/bin
# 4 remove HyperDbg.zip and HyperDbg folder
# now merge into pre-release.yml for generating GitHub Changelog Generator and release etc
# Additionally, currently only bin sums from builds on the dev branch will allow gui builds to succeed
# - name: Run tests for auto bind sdk
# run: go test ./...
#
# - name: Build the project
# run: go build .
# pack HyperDbg.exe to HyperDbg.zip
# upload HyperDbg.zip to release