Release 0.23.0 #780
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS CI | |
env: | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- "**" | |
jobs: | |
macos: | |
name: LLVM ${{ matrix.LLVM_VERSION }} | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
LLVM_VERSION: [12, 13, 14, 16] | |
steps: | |
- name: Debugging | |
run: | | |
env | sort | |
cat $GITHUB_EVENT_PATH | |
- name: Fix git | |
run: | | |
git config --global --add safe.directory $PWD | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: ./actions/detect-package-metadata | |
id: metadata | |
- name: Run CI task | |
run: | | |
brew install ansible | |
cd infrastructure && \ | |
ansible-playbook macos-playbook.yaml \ | |
-e llvm_version="${{ matrix.LLVM_VERSION }}" \ | |
-e source_dir=$PWD/.. \ | |
-e gitref=$GITHUB_SHA \ | |
-e host=localhost \ | |
-e SDKROOT=`xcrun -show-sdk-path` \ | |
-e mull_version=${{ steps.metadata.outputs.version }}${{ steps.metadata.outputs.suffix }} \ | |
--verbose | |
- name: Publish package | |
if: env.CLOUDSMITH_API_KEY != null | |
run: | | |
cloudsmith push raw \ | |
--name mull-`echo ${{ matrix.LLVM_VERSION }} | awk -F. ' { print $1 } '` \ | |
--version ${{ steps.metadata.outputs.version }}${{ steps.metadata.outputs.suffix }} \ | |
mull-project/mull-${{ steps.metadata.outputs.channel }} \ | |
--tags macos \ | |
infrastructure/packages/`cat infrastructure/PACKAGE_FILE_NAME`.zip | |
- name: Move package | |
run: | | |
mkdir -p /tmp/packages | |
mv infrastructure/packages/`cat infrastructure/PACKAGE_FILE_NAME`.zip /tmp/packages/`cat infrastructure/PACKAGE_FILE_NAME`.zip | |
- uses: ./actions/attach-package | |
with: | |
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }} |