Skip to content

MacOS-13 Integration #2947

MacOS-13 Integration

MacOS-13 Integration #2947

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
- 'release/*'
workflow_dispatch:
inputs:
version:
description: 'Version (e.g., if 1.2.3, then binaries look like cctools-1.2.3-ARCH.tar.gz)'
required: true
tag:
description: 'Tag to deploy (e.g. release/7.2.1)'
required: true
name: Test and deploy
jobs:
build-macos-13:
runs-on: macos-13
timeout-minutes: 30
env:
CCTOOLS_OUTPUT: ${{ format('cctools-{0}-x86_64-{1}.tar.gz', github.event.inputs.version, 'osx-13') }}
CCTOOLS_SOURCE_PROFILE: yes
#needs: lint
steps:
- name: checkout CCTools from branch head
uses: actions/checkout@v3
- name: Get sha of tag
id: vars
shell: bash
run: echo "{tag_sha}=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Conda-Setup
run: ${GITHUB_WORKSPACE}/packaging/build-conda/setup.sh
- name: Configure
run: ${GITHUB_WORKSPACE}/packaging/build-conda/configure.sh
- name: Build
run: ${GITHUB_WORKSPACE}/packaging/build-conda/build.sh
- name: Install
run: ${GITHUB_WORKSPACE}/packaging/build-conda/install.sh
- name: Test
run: ${GITHUB_WORKSPACE}/packaging/build-conda/test.sh
- name: deploy
uses: ncipollo/release-action@v1
if: github.event_name == 'workflow_dispatch'
with:
artifacts: /tmp/${{ env.CCTOOLS_OUTPUT }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
artifactContentType: application/gzip
draft: true
omitBody: true
omitBodyDuringUpdate: true
prerelease: true
replacesArtifacts: true
commit: ${{ steps.vars.output.tag_sha }}
tag: ${{ github.event.inputs.tag }}