[SES-42] checkout client building and start build #51
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 | |
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: Clone CraftMaster | |
run: git clone -q --depth=1 https://invent.kde.org/kde/craftmaster.git "${{ github.workspace }}\craft\CraftMaster" | |
- name: Craftmaster setup | |
run: | | |
& "${{ github.workspace }}\.github\workflows\craftmaster.ps1" --setup | |
- name: Craft unshelve | |
continue-on-error: true | |
run: | | |
& "${{ github.workspace }}\.github\workflows\craftmaster.ps1" -c --unshelve "${{ github.workspace }}\craft.shelf" | |
- name: Install dependencies | |
run: | | |
& "${{ github.workspace }}\.github\workflows\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 PATH | |
run: | | |
echo "${{ github.workspace }}\${{ env.CRAFT_TARGET }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Clone Client Building | |
run: git clone -b develop --single-branch https://github.com/IONOS-Productivity/nc-client-building.git "${{ github.workspace }}\nc-client-building" | |
- name: Build | |
run: | | |
cd "${{ github.workspace }}\nc-client-building" | |
$ ./build.bat Release | |
# - name: Build | |
# run: | | |
# & "${{ github.workspace }}\.github\workflows\craftmaster.ps1" -c --src-dir ${{ github.workspace }} nextcloud-client |