Skip to content

Bump virtualenv from 20.30.0 to 20.36.1 #40

Bump virtualenv from 20.30.0 to 20.36.1

Bump virtualenv from 20.30.0 to 20.36.1 #40

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: macOS - LLVM ${{ matrix.LLVM_VERSION }}
runs-on: macos-latest
strategy:
matrix:
LLVM_VERSION: [16, 17, 18, 19]
steps:
- name: Fix git
run: |
git config --global --add safe.directory $PWD
- uses: actions/checkout@v5
- uses: ./.github/actions/detect-package-metadata
- uses: ./.github/actions/setup-bazel-cache
with:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Run CI task
run: |
brew install bazelisk zlib ncurses sqlite ninja llvm@${{ matrix.LLVM_VERSION }}
mkdir -p packages
bazel build //...
bazel test //...
mv -v bazel-bin/Mull-*.zip packages/
- name: Publish package
if: env.CLOUDSMITH_API_KEY != null
run: |
bazel run publish && exit 0
max_attempts=3
attempt=1
until [ "$attempt" -ge "$max_attempts" ]
do
echo "Attempt $attempt failed. Retrying..."
attempt=$((attempt+1))
bazel run publish && exit 0
done
echo "All $max_attempts attempts failed."
exit 1
- name: Move package
run: |
mkdir -p /tmp/packages
sudo mv -v packages/Mull-*.zip /tmp/packages/
- uses: ./.github/actions/attach-package
with:
GH_API_KEY: ${{ secrets.GITHUB_TOKEN }}