-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change some macro to function, add test for ci
- Loading branch information
1 parent
96850de
commit 15347ca
Showing
6 changed files
with
142 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build_tools | ||
name: build_wintools | ||
on: | ||
push: {tags: ['v*'] } # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: | ||
|
@@ -7,8 +7,8 @@ permissions: | |
contents: write | ||
|
||
jobs: | ||
build_winexe_libwinhook: | ||
runs-on: windows-2019 # default batch, powershell | ||
build_winexe_winloader: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: pull and init | ||
uses: actions/checkout@v3 | ||
|
@@ -17,13 +17,55 @@ jobs: | |
- name: add msbuild to path | ||
uses: microsoft/[email protected] | ||
|
||
- name: build winloader | ||
- name: build target | ||
run: .\project\winexe_winloader\release_msvc.bat | ||
|
||
- name: create a release | ||
- name: upload release | ||
uses: ncipollo/release-action@v1 | ||
if: github.event_name == 'push' | ||
with: | ||
artifacts: "./project/winexe_winloader/build/winloader32.exe,./project/winexe_winloader/build/winloader64.exe" | ||
allowUpdates: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_windll_winhook: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: pull and init | ||
uses: actions/checkout@v3 | ||
with: {submodules: true} | ||
|
||
- name: add msbuild to path | ||
uses: microsoft/[email protected] | ||
|
||
- name: build target | ||
run: .\project\windll_winhook\release_msvc.bat | ||
|
||
- name: upload release | ||
uses: ncipollo/release-action@v1 | ||
if: github.event_name == 'push' | ||
with: | ||
artifacts: "./project/windll_winhook/build/libwinhook32.dll,./project/windll_winhook/build/libwinhook64.dll" | ||
allowUpdates: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_windll_winpe: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: pull and init | ||
uses: actions/checkout@v3 | ||
with: {submodules: true} | ||
|
||
- name: add msbuild to path | ||
uses: microsoft/[email protected] | ||
|
||
- name: build target | ||
run: .\project\windll_winpe\release_msvc.bat | ||
|
||
- name: upload release | ||
uses: ncipollo/release-action@v1 | ||
if: github.event_name == 'push' | ||
with: | ||
artifacts: "./project/windll_winpe/build/libwinpe32.dll,./project/windll_winpe/build/libwinpe64.dll" | ||
allowUpdates: "true" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: test_wintools | ||
on: | ||
push: {tags: ['v*'] } # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
test_windll_winhook: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: pull and init | ||
uses: actions/checkout@v3 | ||
with: {submodules: true} | ||
|
||
- name: add msbuild to path | ||
uses: microsoft/[email protected] | ||
|
||
- name: test target | ||
shell: cmd | ||
run: .\project\windll_winhook\test_msvc.bat | ||
|
||
test_windll_winpe: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: pull and init | ||
uses: actions/checkout@v3 | ||
with: {submodules: true} | ||
|
||
- name: add msbuild to path | ||
uses: microsoft/[email protected] | ||
|
||
- name: test target | ||
shell: cmd | ||
run: .\project\windll_winpe\test_msvc.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
msbuild %~dp0\libwinhook.sln -t:libwinhook_test:rebuild -p:configuration=debug -p:Platform=x86 | ||
msbuild %~dp0\libwinhook.sln -t:libwinhook_test:rebuild -p:configuration=debug -p:Platform=x64 | ||
pushd %~dp0\build | ||
libwinhook_test32d | ||
libwinhook_test64d | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
msbuild %~dp0\libwinpe.sln -t:libwinpe_test:rebuild -p:configuration=debug -p:Platform=x86 | ||
msbuild %~dp0\libwinpe.sln -t:libwinpe_test:rebuild -p:configuration=debug -p:Platform=x64 | ||
pushd %~dp0\build | ||
libwinpe_test32d | ||
libwinpe_test64d | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters