forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refact/ci remove third party topmost window (rustdesk#7263)
* Refact. Remove third-party prebuilt dep, topmost window Signed-off-by: fufesou <[email protected]> * fix ci Signed-off-by: fufesou <[email protected]> * Update third-party-RustDeskTempTopMostWindow.yml --------- Signed-off-by: fufesou <[email protected]> Co-authored-by: RustDesk <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
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
56 changes: 56 additions & 0 deletions
56
.github/workflows/third-party-RustDeskTempTopMostWindow.yml
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,56 @@ | ||
name: build RustDeskTempTopMostWindow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
target: | ||
description: 'Target' | ||
required: true | ||
type: string | ||
default: 'windows-2019' | ||
configuration: | ||
description: 'Configuration' | ||
required: true | ||
type: string | ||
default: 'Release' | ||
platform: | ||
description: 'Platform' | ||
required: true | ||
type: string | ||
default: 'x64' | ||
target_version: | ||
description: 'TargetVersion' | ||
required: true | ||
type: string | ||
default: 'Windows10' | ||
|
||
env: | ||
project_path: WindowInjection/WindowInjection.vcxproj | ||
|
||
jobs: | ||
build-RustDeskTempTopMostWindow: | ||
runs-on: ${{ inputs.target }} | ||
strategy: | ||
fail-fast: false | ||
env: | ||
build_output_dir: RustDeskTempTopMostWindow/WindowInjection/${{ inputs.platform }}/${{ inputs.configuration }} | ||
steps: | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Download the source code | ||
run: | | ||
git clone https://github.com/rustdesk-org/RustDeskTempTopMostWindow RustDeskTempTopMostWindow | ||
# Build. commit 53b548a5398624f7149a382000397993542ad796 is tag v0.3 | ||
- name: Build the project | ||
run: | | ||
cd RustDeskTempTopMostWindow && git checkout 53b548a5398624f7149a382000397993542ad796 | ||
msbuild ${{ env.project_path }} -p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.platform }} /p:TargetVersion=${{ inputs.target_version }} | ||
- name: Archive build artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: topmostwindow-artifacts | ||
path: | | ||
./${{ env.build_output_dir }}/WindowInjection.dll |
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