Bump filelock from 3.18.0 to 3.20.3 #41
This file contains hidden or 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: | |
| 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 }} |