[SES-42] use ps command to download #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Png2Ico_EXECUTABLE: ${{ github.workspace }}\png2ico\png2ico.exe | |
name: IONOS Windows Build | |
runs-on: windows-2019 | |
steps: | |
- name: Load png2ico | |
run: Invoke-WebRequest https://github.com/hiiamok/png2ImageMagickICO/releases/download/v1.0/x64.zip -OutFile ${{ env.HOME }}\png2ico.zip | |
- name: Unzip png2ico | |
run: Expand-Archive -Path ${{ env.HOME }}\png2ico.zip -DestinationPath ${{ env.HOME }}\png2ico | |
- 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: Setup Variables | |
run: | | |
echo "PROJECT_PATH=${{ env.BUILDING_ROOT }}" >> $GITHUB_ENV | |
echo "Png2Ico_EXECUTABLE=${{ env.HOME }}\png2ico\png2ico.exe" >> $GITHUB_ENV | |
- name: Build | |
run: | | |
& "${{env.CRAFTMASTER_PS1}}" -c --src-dir ${{ env.DESKTOP_ROOT }} nextcloud-client | |
# - name: Build | |
# shell: bash | |
# run: | | |
# cd "${{ env.BUILDING_ROOT }}" | |
# ./build.bat Release |