Skip to content

COMP: Update Appveyor ensuring latest version of scikit-ci-addons is installed #43

COMP: Update Appveyor ensuring latest version of scikit-ci-addons is installed

COMP: Update Appveyor ensuring latest version of scikit-ci-addons is installed #43

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
tags:
- 'v*'
jobs:
tests:
runs-on: macos-12
name: macos-12
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
path: src
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.22.2
- name: Setup python
uses: actions/[email protected]
with:
python-version: '3.7'
- name: Install scikit-ci-addons
run: pip install -U scikit-ci-addons
- name: Download Qt archive
uses: carlosperate/[email protected]
with:
file-url: 'https://github.com/jcfr/qt-static-build/releases/download/qt-5.15.2-macosx10.13-static-x86_64/qt-5.15.2-macosx10.13-static-x86_64.tar.bz2'
sha256: '13a1df0c939c22618fb979072c3c16191cb42f7759ea3d8ec344aa229a04bca0'
- name: Extract Qt archive
run: |
tar -xjvf qt-5.15.2-macosx10.13-static-x86_64.tar.bz2
mv qt-5.15.2-macosx10.13-static-x86_64 qt
- name: Configure
run: |
cmake \
-DQt5_DIR:DIR=$(pwd)/qt/lib/cmake/Qt5 \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.13 \
-DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 \
-B build -S src
env:
CC: clang
CXX: clang++
- name: Build
run: |
cmake --build build -- -j4
- name: Package
run: |
cmake --build build --target package
# Exclude tests requiring X Display
- name: Test
run: |
cd build
ctest -LE XDisplayRequired -VV
- name: Publish packages
uses: actions/upload-artifact@v2
with:
name: macos-packages
path: build/CTKAppLauncher-*.tar.gz
# See https://github.com/scikit-build/scikit-ci-addons/issues/96
#- name: Publish packages
# run: |
# cd src
# ci_addons publish_github_release commontk/applauncher \
# --exit-success-if-missing-token \
# --prerelease-sha main \
# --prerelease-packages ../build/CTKAppLauncher-*.tar.gz \
# --prerelease-packages-clear-pattern "*macosx*" \
# --prerelease-packages-keep-pattern "*<COMMIT_SHORT_SHA>*" \
# --release-packages build/CTKAppLauncher-*.tar.gz
# env:
# GITHUB_TOKEN: secrets.COMMONTKBOT_GITHUB_TOKEN