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
env: | |
proto_tag: 'v3.25.1' | |
USE_BAZEL_VERSION: '6.4.0' | |
name: Conformance Runner | |
on: [push] | |
jobs: | |
build-conformance-runner: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out protobuf | |
uses: actions/checkout@v3 | |
with: | |
repository: protocolbuffers/protobuf | |
ref: ${{ env.proto_tag }} | |
path: protobuf | |
- name: Build runner binary | |
run: bazelisk build conformance/conformance_test_runner | |
working-directory: protobuf | |
- name: Copy binary | |
run: cp bazel-bin/conformance/conformance_test_runner . | |
working-directory: protobuf | |
- name: Archive binary | |
uses: actions/upload-artifact@v4 | |
with: | |
name: conformance_test_runner-${{ matrix.os }}-${{ env.proto_tag }} | |
path: protobuf/conformance_test_runner | |
release-conformance-runner: | |
runs-on: ubuntu-latest | |
needs: build-conformance-runner | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Download binary | |
uses: actions/download-artifact@v4 | |
- name: ls | |
run: ls -lR | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: build-protobuf-conformance-runner/conformance_test_runner-* |