mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
0ece126cad
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
57 lines
2.1 KiB
YAML
57 lines
2.1 KiB
YAML
name: macOS Build and Test
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
build:
|
|
name: macOS Build and Test
|
|
runs-on: macos-latest
|
|
env:
|
|
CRAFT_TARGET: macos-64-clang
|
|
CRAFT_MASTER_LOCATION: ${{ github.workspace }}/CraftMaster
|
|
CRAFT_MASTER_CONFIG: ${{ github.workspace }}/craftmaster.ini
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Restore cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/cache
|
|
key: macos-latest-${{ env.CRAFT_TARGET }}
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install Homebrew dependencies
|
|
run: |
|
|
brew install inkscape
|
|
|
|
- name: Download Craft
|
|
run: |
|
|
git clone -q --depth=1 https://invent.kde.org/packaging/craftmaster.git ${{ env.CRAFT_MASTER_LOCATION }}
|
|
|
|
- name: Add Nextcloud client blueprints
|
|
run: |
|
|
python "${{ env.CRAFT_MASTER_LOCATION }}/CraftMaster.py" --config "${{ env.CRAFT_MASTER_CONFIG }}" --target ${{ env.CRAFT_TARGET }} -c --add-blueprint-repository https://github.com/nextcloud/desktop-client-blueprints.git
|
|
|
|
- name: Setup Craft
|
|
run: |
|
|
python "${{ env.CRAFT_MASTER_LOCATION }}/CraftMaster.py" --config "${{ env.CRAFT_MASTER_CONFIG }}" --target ${{ env.CRAFT_TARGET }} -c craft
|
|
|
|
- name: Install Craft Nextcloud client dependencies
|
|
run: |
|
|
python "${{ env.CRAFT_MASTER_LOCATION }}/CraftMaster.py" --config "${{ env.CRAFT_MASTER_CONFIG }}" --target ${{ env.CRAFT_TARGET }} -c --install-deps nextcloud-client
|
|
|
|
- name: Build client
|
|
run: |
|
|
python "${{ env.CRAFT_MASTER_LOCATION }}/CraftMaster.py" --config "${{ env.CRAFT_MASTER_CONFIG }}" --target ${{ env.CRAFT_TARGET }} -c --src-dir ${{ github.workspace }} nextcloud-client
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd ${{ github.workspace }}/${{ env.CRAFT_TARGET }}/build/nextcloud-client/work/build
|
|
ctest --output-on-failure --output-junit testResult.xml
|
|
|