11name : Build Artifacts
22
3- on :
4- release :
5- types :
6- - created
3+ on : push
4+
5+ # on:
6+ # release:
7+ # types:
8+ # - created
79
810jobs :
911 build :
1012 strategy :
1113 fail-fast : true
1214 matrix :
1315 config :
14- - name : linux@amd64
16+ # Checkout https://github.com/actions/runner-images?tab=readme-ov-file#available-images
17+ - name : linux
1518 os : ubuntu-latest
1619 platform : linux
17- - name : macos@amd64
20+ arch : amd64
21+ - name : macos
22+ os : macos-13
23+ platform : darwin
24+ arch : amd64
25+ - name : macos
1826 os : macos-latest
1927 platform : darwin
28+ arch : arm64
2029
2130 runs-on : ${{ matrix.config.os }}
22- name : ${{ matrix.config.name }}
31+ name : ${{ matrix.config.name }}@${{ matrix.config.arch }}
2332 steps :
2433 - uses : actions/github-script@v7
2534 id : get_release
2635 with :
2736 script : |
28- const tag = context.ref.replace('refs/tags/', '');
37+ // const tag = context.ref.replace('refs/tags/', '');
38+ const tag = 'v1.46.7';
2939 const { owner, repo } = context.repo;
3040 const { data: { upload_url } } = await github.rest.repos.getReleaseByTag({ owner, repo, tag });
3141
4050
4151 - name : Install Basilisk
4252 run : |
43- wget https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-${{ matrix.config.platform }}-amd64
44- chmod a+x bazelisk-${{ matrix.config.platform }}-amd64
45- sudo mv bazelisk-${{ matrix.config.platform }}-amd64 /usr/local/bin/bazel
53+ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-${{ matrix.config.platform }}-${{ matrix.config.arch }}
54+ chmod a+x bazelisk-${{ matrix.config.platform }}-${{ matrix.config.arch }}
55+ sudo mv bazelisk-${{ matrix.config.platform }}-${{ matrix.config.arch }} /usr/local/bin/bazel
4656
4757 - name : Build grpc_php_plugin and grpc_pyhon_plugin
4858 run : |
@@ -54,18 +64,18 @@ jobs:
5464 run : |
5565 cd bazel-bin/src/compiler/
5666 cp grpc_php_plugin grpc-php-plugin
57- tar czf grpc-php-plugin.${VERSION}.${{ matrix.config.platform }}.amd64 .tar.gz grpc-php-plugin
67+ tar czf grpc-php-plugin.${VERSION}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz grpc-php-plugin
5868 cp grpc_python_plugin grpc-python-plugin
59- tar czf grpc-python-plugin.${VERSION}.${{ matrix.config.platform }}.amd64 .tar.gz grpc-python-plugin
69+ tar czf grpc-python-plugin.${VERSION}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz grpc-python-plugin
6070
6171 - name : Upload Release Asset for grpc_php_plugin
6272 uses : actions/upload-release-asset@v1
6373 env :
6474 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6575 with :
6676 upload_url : ${{ steps.get_release.outputs.upload_url }}
67- asset_path : bazel-bin/src/compiler/grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64 .tar.gz
68- asset_name : grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64 .tar.gz
77+ asset_path : bazel-bin/src/compiler/grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz
78+ asset_name : grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz
6979 asset_content_type : application/gzip
7080
7181 - name : Upload Release Asset for grpc_python_plugin
7484 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7585 with :
7686 upload_url : ${{ steps.get_release.outputs.upload_url }}
77- asset_path : bazel-bin/src/compiler/grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64 .tar.gz
78- asset_name : grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64 .tar.gz
87+ asset_path : bazel-bin/src/compiler/grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz
88+ asset_name : grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.${{ matrix.config.arch }} .tar.gz
7989 asset_content_type : application/gzip
0 commit comments