Skip to content

Commit

Permalink
Make protoc availiable
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed Feb 23, 2023
1 parent 7ff08ac commit 952ad72
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ jobs:
with:
toolchain: stable

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
# For some build platforms a nested container is used. We need to make
# `protoc` availiable inside that container.
- run: |
cp $(which protoc) .
cat >$GITHUB_WORKSPACE/entrypoint.sh <<EOL
#!/bin/bash
export PATH=$PATH:$PWD
"$@"
EOL
chmod +x $GITHUB_WORKSPACE/entrypoint.sh
- name: Install Twine
run: pip install -U twine

Expand All @@ -123,6 +139,7 @@ jobs:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux || 'auto' }}
container: ${{ matrix.container }}
docker-options: --entrypoint "${{ env.github_workspace }}/entrypoinst.sh"
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.7 3.8 3.9 3.10 3.11 pypy3.7 pypy3.8 pypy3.9' }}

- name: List build output
Expand Down

0 comments on commit 952ad72

Please sign in to comment.