mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
name: ownCloud CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- "master"
|
|
- "2.7"
|
|
|
|
push:
|
|
branches:
|
|
- "master"
|
|
- "2.7"
|
|
|
|
defaults:
|
|
run:
|
|
shell: pwsh
|
|
|
|
jobs:
|
|
# ------------------------------------------------------------------------------------------------------------------------------------------
|
|
build-windows:
|
|
name: Windows
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
target: ["windows-msvc2017_32-cl", "windows-msvc2017_64-cl"]
|
|
env:
|
|
APPVEYOR_BUILD_FOLDER: ${{ github.workspace }}
|
|
CRAFT: C:/CraftMaster/${{ matrix.target }}/craft/bin/craft.py
|
|
|
|
steps:
|
|
- name: Check out source code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 50 # so git-describe works
|
|
submodules: true
|
|
|
|
- name: Fetch tag information
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: git fetch -f origin $GITHUB_REF:$GITHUB_REF
|
|
|
|
- name: Clone CraftMaster
|
|
run: git clone --depth=1 https://invent.kde.org/kde/craftmaster.git C:/CraftMaster/CraftMaster
|
|
|
|
- name: Configure CraftMaster
|
|
run: py C:/CraftMaster/CraftMaster/CraftMaster.py --config $env:APPVEYOR_BUILD_FOLDER/.appveyor.ini --variables "APPVEYOR_BUILD_FOLDER=$env:APPVEYOR_BUILD_FOLDER"
|
|
|
|
- name: Init Craft
|
|
run: py $env:CRAFT craft
|
|
|
|
- name: Add ownCloud blueprint
|
|
run: py $env:CRAFT --add-blueprint-repository https://github.com/owncloud/craft-blueprints-owncloud.git
|
|
|
|
- name: Install NSIS
|
|
run: py $env:CRAFT dev-utils/nsis
|
|
|
|
- name: Install dependencies
|
|
run: py $env:CRAFT --install-deps owncloud/owncloud-client
|
|
|
|
- name: Build
|
|
run: py $env:CRAFT --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER owncloud/owncloud-client
|
|
|
|
- name: Run tests
|
|
run: py $env:CRAFT --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER --test owncloud/owncloud-client
|
|
|
|
- name: Package
|
|
run: py $env:CRAFT --no-cache --src-dir $env:APPVEYOR_BUILD_FOLDER --package owncloud/owncloud-client
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Windows
|
|
path: ${{ github.workspace }}/binaries/*
|
|
|
|
|
|
|