Skip to content

[SES-42] overwrite dir if exists #34

[SES-42] overwrite dir if exists

[SES-42] overwrite dir if exists #34

name: IONOS Windows Build
on:
workflow_dispatch:
push:
branches:
- feature/SES-42_pipeline
defaults:
run:
shell: pwsh
jobs:
build:
env:
HOME: ${{ github.workspace }}
CRAFT_TARGET: windows-msvc2019_64-cl
name: IONOS Windows Build
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Remove old Craft64 Directory
continue-on-error: true
run: Remove-Item -Recurse -Force "${{ github.workspace }}\Craft64"
- name: Install Craft with Autobuild script
run: |
& "${{ github.workspace }}\.github\workflows\autobuild.ps1"
# - name: Clone CraftMaster
# run: git clone -q --depth=1 https://invent.kde.org/kde/craftmaster.git "${{ github.workspace }}\craft\CraftMaster"
# - name: Craft setup
# run: |
# & "${{ github.workspace }}\.github\workflows\craft_setup.ps1" --setup
- name: Setup Craft Environment
run: |
& cd ${{ github.workspace }}\Craft64\craft
& .\craftenv.ps1
- name: Add blueprint repository
run: |
& craft --add-blueprint-repository [git]https://github.com/EmilBohleber/nc-desktop-client-blueprints.git
# - name: Craft unshelve
# continue-on-error: true
# run: |
# & "${{ github.workspace }}\.github\workflows\craft_setup.ps1" -c --unshelve "${{ github.workspace }}\craft.shelf"
# - name: Switch Craft to qt5-lts
# run: |
# & cd "${{ github.workspace }}\craft\${{ env.CRAFT_TARGET}}\etc\blueprints\locations\craft-blueprints-kde"
# git checkout qt5-lts
- name: craft
run: |
& "${{ github.workspace }}\.github\workflows\craft_setup.ps1" -c craft
# - name: print Debug filesystem
# run: |
# Get-ChildItem -Recurse "D:\a\nc-desktop\nc-desktop\craft\CraftMaster\windows-msvc2019_64-cl\etc\blueprints\locations\craft-blueprints-kde"
- name: Install dependencies
run: |
& "${{ github.workspace }}\.github\workflows\craft_setup.ps1" -c --install-deps nextcloud-client