Skip to content

[SES-42] restructure repo #53

[SES-42] restructure repo

[SES-42] restructure repo #53

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
BUILDING_ROOT: ${{ github.workspace }}\nc-client-building
DESKTOP_ROOT: ${{ github.workspace }}\nc-client-desktop\desktop
CRAFTMASTER_PS1: ${{ github.workspace }}\nc-client-desktop\desktop\.github\workflows\craftmaster.ps1
name: IONOS Windows Build
runs-on: windows-2019
steps:
- name: Clone Client Building
run: git clone -b develop --single-branch https://github.com/IONOS-Productivity/nc-client-building.git "${{ env.BUILDING_ROOT }}"
- name: Checkout
uses: actions/checkout@v4
with:
path: ${{ env.DESKTOP_ROOT }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Clone CraftMaster
run: git clone -q --depth=1 https://invent.kde.org/kde/craftmaster.git "${{ env.HOME }}\craft\CraftMaster"
- name: Craftmaster setup
run: |
& "${{env.CRAFTMASTER_PS1}}" --setup
- name: Craft unshelve
continue-on-error: true
run: |
& "${{env.CRAFTMASTER_PS1}}" -c --unshelve "${{ env.DESKTOP_ROOT }}\craft.shelf"
- name: Install dependencies
run: |
& "${{env.CRAFTMASTER_PS1}}" -c --install-deps nextcloud-client
- name: Cache Install inkscape
id: cache-install-inkscape
uses: actions/cache@v4
with:
path: C:\Program Files\inkscape
key: ${{ runner.os }}-cache-install-inkscape
- name: Install inkscape
if: steps.cache-install-inkscape.outputs.cache-hit != 'true'
run: |
choco install inkscape
- name: Install png2ico
run: |
choco install png2ico
- name: Setup Variables
run: |
echo "PROJECT_PATH=${{ env.BUILDING_ROOT }}" >> $GITHUB_ENV
echo "Png2Ico_EXECUTABLE=C:\ProgramData\chocolatey\lib\png2ico\tools\png2ico\png2ico.exe" >> $GITHUB_ENV
- name: Build
shell: git-bash
run: |
cd "${{ env.BUILDING_ROOT }}"
./build.bat Release
# - name: Build
# run: |
# & "${{ github.workspace }}\.github\workflows\craftmaster.ps1" -c --src-dir ${{ github.workspace }} nextcloud-client