From 3441598bd2460b47e50e1f3be1e5c5add757de36 Mon Sep 17 00:00:00 2001 From: Akash Shah <44998751+itsalfredakku@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:24:08 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Setup=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 41 +++++++++++++ src-installer/RDPWInst.dproj | 15 +++++ src-rdpcheck/RDPCheck.dproj | 15 +++++ src-rdpconfig/RDPConf.dproj | 15 +++++ src-x86-binarymaster/rdpwrap.dproj | 17 +++++- src-x86-x64-Fusix/RDPWrap.vcxproj | 96 +++++++++++++++++++++++++++++- 6 files changed, 197 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2a82075 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build and Release + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Set up .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '5.0.x' + + - name: Build project + run: | + dotnet build src-installer/RDPWInst.dproj + dotnet build src-rdpcheck/RDPCheck.dproj + dotnet build src-rdpconfig/RDPConf.dproj + dotnet build src-x86-binarymaster/rdpwrap.dproj + dotnet build src-x86-x64-Fusix/RDPWrap.vcxproj + + - name: Upload build artifacts + uses: actions/upload-artifact@v2 + with: + name: build-artifacts + path: bin/ diff --git a/src-installer/RDPWInst.dproj b/src-installer/RDPWInst.dproj index 6afda06..cf834f4 100644 --- a/src-installer/RDPWInst.dproj +++ b/src-installer/RDPWInst.dproj @@ -34,6 +34,17 @@ DEBUG;$(DCC_Define) + + + true + Base + true + + + false + GITHUBACTIONS;$(DCC_Define) + 0 + false @@ -50,6 +61,10 @@ Cfg_2 Base + + Cfg_3 + Base + diff --git a/src-rdpcheck/RDPCheck.dproj b/src-rdpcheck/RDPCheck.dproj index c5027ce..c05a262 100644 --- a/src-rdpcheck/RDPCheck.dproj +++ b/src-rdpcheck/RDPCheck.dproj @@ -19,6 +19,11 @@ Base true + + true + Base + true + ..\bin\ WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;$(DCC_UnitAlias) @@ -34,6 +39,12 @@ DEBUG;$(DCC_Define) + + + false + GITHUBACTIONS;$(DCC_Define) + 0 + false @@ -53,6 +64,10 @@ Cfg_2 Base + + Cfg_3 + Base + diff --git a/src-rdpconfig/RDPConf.dproj b/src-rdpconfig/RDPConf.dproj index aa9ab96..04f5a11 100644 --- a/src-rdpconfig/RDPConf.dproj +++ b/src-rdpconfig/RDPConf.dproj @@ -19,6 +19,11 @@ Base true + + true + Base + true + ..\bin\ WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;$(DCC_UnitAlias) @@ -34,6 +39,12 @@ DEBUG;$(DCC_Define) + + + false + GITHUBACTIONS;$(DCC_Define) + 0 + false @@ -56,6 +67,10 @@ Cfg_2 Base + + Cfg_3 + Base + diff --git a/src-x86-binarymaster/rdpwrap.dproj b/src-x86-binarymaster/rdpwrap.dproj index 2b81a43..f2ddf53 100644 --- a/src-x86-binarymaster/rdpwrap.dproj +++ b/src-x86-binarymaster/rdpwrap.dproj @@ -19,8 +19,13 @@ Base true + + true + Base + true + - rdpwrap.dll + ..\bin\rdpwrap.dll WinTypes=Windows;WinProcs=Windows;$(DCC_UnitAlias) true 00400000 @@ -35,6 +40,12 @@ DEBUG;$(DCC_Define) + + false + GITHUBACTIONS;$(DCC_Define) + 0 + false + MainSource @@ -50,6 +61,10 @@ Cfg_2 Base + + Cfg_3 + Base + diff --git a/src-x86-x64-Fusix/RDPWrap.vcxproj b/src-x86-x64-Fusix/RDPWrap.vcxproj index ebc2664..2dba310 100644 --- a/src-x86-x64-Fusix/RDPWrap.vcxproj +++ b/src-x86-x64-Fusix/RDPWrap.vcxproj @@ -1,4 +1,4 @@ - + @@ -17,6 +17,14 @@ Release x64 + + GitHubActions + Win32 + + + GitHubActions + x64 + {29E4E73B-EBA6-495B-A76C-FBB462196C64} @@ -50,6 +58,20 @@ true Unicode + + DynamicLibrary + false + v120 + true + Unicode + + + DynamicLibrary + false + v120 + true + Unicode + @@ -65,6 +87,12 @@ + + + + + + true @@ -78,6 +106,12 @@ false + + false + + + false + Use @@ -156,6 +190,58 @@ true + + + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;RDPWRAP_EXPORTS;%(PreprocessorDefinitions) + true + true + Level3 + 1Byte + MultiThreaded + + + Windows + false + true + true + Export.def + ..\bin\RDPWrap.dll + + + false + true + + + + + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;RDPWRAP_EXPORTS;%(PreprocessorDefinitions) + true + true + Level3 + 1Byte + MultiThreaded + + + Windows + false + true + true + Export.def + ..\bin\RDPWrap.dll + + + false + true + + @@ -178,6 +264,12 @@ + false + false + + + + @@ -186,6 +278,8 @@ Create Create Create + Create + Create