Skip to content

Remove ansible from macOS CI #815

Remove ansible from macOS CI

Remove ansible from macOS CI #815

Workflow file for this run

name: macOS CI
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: ["main"]
tags: ["**"]
pull_request:
branches: ["main"]
jobs:
macos:
name: LLVM ${{ matrix.LLVM_VERSION }}
runs-on: macos-latest
strategy:
matrix:
include:
- OS_NAME: "macos"
LLVM_VERSION: 13
- OS_NAME: "macos"
LLVM_VERSION: 14
- OS_NAME: "macos"
LLVM_VERSION: 15
- OS_NAME: "macos"
LLVM_VERSION: 16
- OS_NAME: "macos"
LLVM_VERSION: 17
- OS_NAME: "macos"
LLVM_VERSION: 18
steps:
- name: Fix git
run: |
git config --global --add safe.directory $PWD
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./actions/detect-package-metadata
id: metadata
- name: Run CI task
run: |
brew install zlib ncurses sqlite ninja llvm@${{ matrix.LLVM_VERSION }}
pip3 install -r requirements.txt --break-system-packages
./infrastructure/generator.py cmake --os macos --llvm_version ${{ matrix.LLVM_VERSION }}
cmake --preset mull -DMULL_VERSION=${{ steps.metadata.outputs.version }}${{ steps.metadata.outputs.suffix }}
# cmake --workflow --preset build-and-test
cmake --workflow --preset package
./end2end-tests/setup_end2end_tests.sh
./end2end-tests/run_end2end_tests.sh macos ${{ matrix.LLVM_VERSION }}
mull-runner-${{ matrix.LLVM_VERSION }} --version
- 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 \
build.${{ matrix.OS_NAME }}.${{ matrix.LLVM_VERSION }}.dir/*.zip
- name: Move package
run: |
mkdir -p /tmp/packages
mv build.${{ matrix.OS_NAME }}.${{ matrix.LLVM_VERSION }}.dir/*.zip /tmp/packages/
- uses: ./actions/attach-package
with:
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}