|
|
|
@ -15,23 +15,23 @@ jobs: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
env: |
|
|
|
|
DOCKER_IMAGE: gcr.io/protobuf-build/bazel/linux@sha256:05a41edee21f620445ca01c46b9d33be2e4d06c3d8adced4341ac5abea754baa |
|
|
|
|
BAZEL_CACHE: --remote_cache=https://storage.googleapis.com/protobuf-bazel-cache --google_default_credentials |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
- name: Set up Cloud SDK |
|
|
|
|
uses: google-github-actions/auth@v0 |
|
|
|
|
with: |
|
|
|
|
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} |
|
|
|
|
export_environment_variables: true |
|
|
|
|
|
|
|
|
|
- name: Use gcloud CLI |
|
|
|
|
run: gcloud info |
|
|
|
|
- name: Configure Docker |
|
|
|
|
run: gcloud auth configure-docker |
|
|
|
|
- name: Pull Docker Image |
|
|
|
|
run: docker pull $DOCKER_IMAGE |
|
|
|
|
- uses: actions/checkout@v2 |
|
|
|
|
- name: Build Wheels |
|
|
|
|
run: cd ${{ github.workspace }} && docker run -v$PWD:/workspace $DOCKER_IMAGE build --crosstool_top=@com_google_protobuf//toolchain:clang_suite --symlink_prefix=/ -c dbg python/dist python/dist:test_wheel |
|
|
|
|
run: cd ${{ github.workspace }} && docker run -e GOOGLE_APPLICATION_CREDENTIALS=/workspace/$(basename $GOOGLE_APPLICATION_CREDENTIALS) -v$PWD:/workspace $DOCKER_IMAGE build $BAZEL_CACHE --crosstool_top=@com_google_protobuf//toolchain:clang_suite --symlink_prefix=/ -c dbg python/dist python/dist:test_wheel |
|
|
|
|
- name: Move Wheels |
|
|
|
|
run: mkdir wheels && find _build/out -name 'protobuf*.whl' -exec mv '{}' wheels ';' |
|
|
|
|
- uses: actions/upload-artifact@v3 |
|
|
|
|