@@ -9,21 +9,30 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install OpenSSL
|
- name: Install cross-compilation tools
|
||||||
run: vcpkg install openssl:x64-windows
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y cmake gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 dotnet-sdk-8.0
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake for Windows
|
||||||
run: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A x64
|
run: |
|
||||||
|
cmake -B build -S . \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw-w64/toolchain-x86_64.cmake \
|
||||||
|
-DCMAKE_SYSTEM_NAME=Windows \
|
||||||
|
-DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
|
||||||
|
-DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ \
|
||||||
|
-DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres
|
||||||
|
|
||||||
- name: Build Unlocker
|
- name: Build Unlocker
|
||||||
run: cmake --build build --config Release --target dbd-unlocker
|
run: cmake --build build --config Release --target dbd-unlocker
|
||||||
|
|
||||||
- name: Build Dumper
|
- name: Build Dumper (Windows)
|
||||||
run: dotnet build src/dumper/dbd-dumper.csproj -c Release
|
run: dotnet build src/dumper/dbd-dumper.csproj -c Release --runtime win-x64
|
||||||
|
|
||||||
Reference in New Issue
Block a user