Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ FakesAssemblies/
# This exclusion needs to be added at the end, after any previous
# reference to "build"
!building.adoc
# Same thing to allow "build"-files in the .woodpecker directory to be tracked
!.woodpecker/*build*

# squish test
test/gui/config.ini
Expand Down
22 changes: 22 additions & 0 deletions .woodpecker/build.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
git config --system --add safe.directory *
New-Item -itemtype Junction -path $HOME/craft -value $env:CI_WORKSPACE/woodpecker_craft
New-Item -Path $HOME/cache -ItemType Directory -ErrorAction SilentlyContinue
.github/workflows/.craft.ps1 --setup
.github/workflows/.craft.ps1 -c --unshelve .craft.shelf
.github/workflows/.craft.ps1 -c craft
New-Item -ItemType Directory binaries
.github/workflows/.craft.ps1 -c --set "forceAsserts$($env:CI_PIPELINE_EVENT -ne "tag")" opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --set "srcDir=$env:CI_WORKSPACE" opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --set "buildNumber=$env:CI_PIPELINE_NUMBER" opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c dev-utils/nsis
.github/workflows/.craft.ps1 -c --install-deps opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --shelve .craft.shelf
Copy-Item .craft.shelf binaries/craft.shelf
.github/workflows/.craft.ps1 -c --no-cache opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --no-cache --test opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --no-cache --package opencloud/opencloud-desktop
.github/workflows/.craft.ps1 -c --no-cache --package --options "[Packager]PackageType=AppxPackager" --options "[Packager]Destination=$env:CI_WORKSPACE/appx/" opencloud/opencloud-desktop
Copy-Item ${HOME}/craft/binaries/* binaries/
Copy-Item appx/* binaries/
dir binaries
return 0
45 changes: 45 additions & 0 deletions .woodpecker/build_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
labels:
platform: windows/amd64
backend: docker

when:
- branch:
- main
- stable-*
event:
- push
- manual
- event: pull_request
- event: tag

clone:
- name: clone
image: opencloudeu/woodpecker-windows-git-plugin:v2

steps:
- name: Clone Craftmaster
image: opencloudeu/woodpecker-windows-git:v2
commands:
- git clone --depth=1 https://invent.kde.org/kde/craftmaster.git `
$$env:CI_WORKSPACE/woodpecker_craft/CraftMaster/CraftMaster

- name: build
image: opencloudeu/woodpecker-windows-desktop-build-tools:v1
environment:
CRAFT_TARGET: windows-cl-msvc2022-x86_64
CRAFT_PACKAGE_SYMBOLS: true
entrypoint: [
"pwsh",
"-noprofile",
"-noninteractive",
"-command",
"Set-StrictMode -Version Latest; `
$ErrorActionPreference = 'Stop'; `
$ProgressPreference = 'SilentlyContinue'; `
$PSNativeCommandUseErrorActionPreference = $true; `
echo $([System.Text.Encoding]::UTF8.GetString(`
[System.Convert]::FromBase64String($Env:CI_SCRIPT)`
)) | iex"]
commands:
- cd $$env:CI_WORKSPACE ; .woodpecker/build.ps1
2 changes: 1 addition & 1 deletion test/opencloud_add_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function(opencloud_add_test test_class)
add_dependencies(${_test_target_name} opencloud)

target_include_directories(${_test_target_name} PRIVATE "${CMAKE_SOURCE_DIR}/test/")
if (UNIX AND NOT APPLE)
if ((UNIX AND NOT APPLE) OR WIN32)
set_property(TEST ${_test_target_name} PROPERTY ENVIRONMENT "QT_QPA_PLATFORM=offscreen")
endif()
endfunction()
Loading