Add PR CI workflow #6
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: Release | |
'on': | |
workflow_dispatch: null | |
pull_request: null | |
jobs: | |
release: | |
strategy: | |
matrix: | |
os: | |
- macos-13 | |
- macos-14 | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- run: sudo bash -c "case "$(uname)" in "Darwin") suffix=darwin-amd64 ;; "Linux") suffix="linux-amd64" ;; *) echo >&2 Unknown uname $(uname) ; exit 1 ;; esac ; curl --fail -L -o /tmp/buildifier.exe "https://github.com/bazelbuild/buildtools/releases/download/v7.3.1/buildifier-${suffix}" && chmod 0755 /tmp/buildifier.exe" | |
- run: git config --global user.email "[email protected]" && git config --global user.name "Raccoons Build" | |
- name: Checkout BCR | |
uses: actions/[email protected] | |
with: | |
repository: illicitonion/bazel-central-registry | |
token: ${{ secrets.BCR_GITHUB_TOKEN }} | |
path: bazel-central-registry | |
ref: refs/heads/main | |
- run: (cd bazel-central-registry && git remote add upstream https://github.com/bazelbuild/bazel-central-registry.git && git fetch upstream && git reset --hard upstream/main) | |
- run: python3 generate.py --bcr_dir=$(pwd)/bazel-central-registry --overlay_tar_path=/tmp/3.3.1.bcr.wip.tar.gz --tag=3.3.1.bcr.wip --release_tar_url_template=file:///tmp/3.3.1.bcr.wip.tar.gz --buildifier=/tmp/buildifier.exe | |
- run: registry_dir="$(pwd)/bazel-central-registry" && workspace="$(mktemp -d)" && cd "${workspace}" && echo 8.0.0 > .bazelversion && echo 'bazel_dep(name = "openssl", version = "3.3.1.bcr.wip")' > MODULE.bazel && bazel test --registry="file://${registry_dir}" @openssl//... |