mirror of
https://github.com/DaedalusX64/daedalus.git
synced 2025-04-02 10:21:48 -04:00
Revert Windows docker container
This commit is contained in:
parent
9db8136fee
commit
f01e028409
1 changed files with 11 additions and 22 deletions
33
.github/workflows/compilation.yml
vendored
33
.github/workflows/compilation.yml
vendored
|
@ -161,36 +161,25 @@ jobs:
|
|||
name: DaedalusX64-macos
|
||||
path: DaedalusX64
|
||||
|
||||
name: Windows Build with Docker
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest # Use a Windows runner
|
||||
runs-on: windows-latest
|
||||
env:
|
||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Switch to Windows Containers
|
||||
- name: Install packages
|
||||
run: |
|
||||
vcpkg install
|
||||
|
||||
- name: Run CMake config
|
||||
run: |
|
||||
Get-Service docker | Stop-Service
|
||||
Start-Process -NoNewWindow -Wait -FilePath "$Env:ProgramFiles\Docker\Docker\DockerCli.exe" -ArgumentList "-SwitchDaemon"
|
||||
Get-Service docker | Start-Service
|
||||
shell: powershell
|
||||
cmake -S . -B build "-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows"
|
||||
|
||||
- name: Pull Windows Docker Image
|
||||
run: docker pull wally4000/daedalus-win:latest
|
||||
|
||||
- name: Run Build in Container
|
||||
- name: Build
|
||||
run: |
|
||||
docker run --rm -v "${{ github.workspace }}:C:\workspace" -w "C:\workspace" wally4000/daedalus-win:latest powershell -Command "
|
||||
cmake -S . -B build '-DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake' '-DVCPKG_TARGET_TRIPLET=x64-windows' ;
|
||||
cmake --build build --config Release ;
|
||||
cmake --install build --prefix DaedalusX64
|
||||
"
|
||||
cmake --build build --config Release
|
||||
cmake --install build --prefix DaedalusX64
|
||||
|
||||
- name: Upload artifacts
|
||||
if: ${{ success() }}
|
||||
|
|
Loading…
Add table
Reference in a new issue