Skip to content
Snippets Groups Projects
Commit 7c41a903 authored by Kirill Yukhin's avatar Kirill Yukhin
Browse files

github-ci: introduce macOS ver. 12 testing on amd64

New workflow was copy-and-pasted from macOS 11 workflow
and patched obviously.

NB: it seems like app-tap/popen test is constantly failing
on macOS ver. 12. Disable until it is fixed.

Part of #6739

(cherry picked from commit d011dffd)
parent d36d8a55
No related merge requests found
name: osx_12
on:
push:
branches:
- 'master'
- '[0-9].[0-9]+'
- '**-full-ci'
tags:
- '**'
pull_request:
types: [opened, reopened, synchronize, labeled]
repository_dispatch:
types: [backend_automation]
workflow_dispatch:
concurrency:
# Update of a developer branch cancels the previously scheduled workflow
# run for this branch. However, the 'master' branch, release branch (1.10,
# 2.8, etc.), and tag workflow runs are never canceled.
#
# We use a trick here: define the concurrency group as 'workflow run ID' +
# 'workflow run attempt' because it is a unique combination for any run.
# So it effectively discards grouping.
#
# Important: we cannot use `github.sha` as a unique identifier because
# pushing a tag may cancel a run that works on a branch push event.
group: ${{ (
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/1.10' ||
startsWith(github.ref, 'refs/heads/2.') ||
startsWith(github.ref, 'refs/tags/')) &&
format('{0}-{1}', github.run_id, github.run_attempt) ||
format('{0}-{1}', github.workflow, github.ref) }}
cancel-in-progress: true
env:
CI_MAKE: make -f .travis.mk
jobs:
osx_12:
# Run on pull request only if the 'full-ci' label is set.
if: github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'full-ci')
runs-on: macos-12
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
submodules: recursive
- uses: ./.github/actions/environment
- name: test
env:
CMAKE_BUILD_TYPE: RelWithDebInfo
CMAKE_EXTRA_PARAMS: -DENABLE_WERROR=ON
run: ${CI_MAKE} test_osx_github_actions
- name: call action to send Telegram message on failure
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_CORE_TOKEN }}
TELEGRAM_TO: ${{ secrets.TELEGRAM_CORE_TO }}
uses: ./.github/actions/send-telegram-notify
if: failure()
- name: artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: osx_12
retention-days: 21
path: ${{ env.VARDIR }}/artifacts
......@@ -4,4 +4,8 @@ import platform
if platform.system() == 'OpenBSD':
self.skip = 1
# Disabled on OSX due to fail #6674.
if platform.system() == 'Darwin':
self.skip = 1
# vim: set ft=python:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment