Skip to content

Commit b793de7

Browse files
committed
[PCCS-11868] Support arm
1 parent 88c09d1 commit b793de7

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,15 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
config:
16-
# Checkout https://github.com/actions/runner-images?tab=readme-ov-file#available-images
17-
- name: linux
16+
- name: linux@amd64
1817
os: ubuntu-latest
1918
platform: linux
20-
arch: amd64
21-
- name: macos
19+
- name: macos@amd64
2220
os: macos-13
2321
platform: darwin
24-
arch: amd64
25-
- name: macos
26-
os: macos-latest
27-
platform: darwin
28-
arch: arm64
2922

3023
runs-on: ${{ matrix.config.os }}
31-
name: ${{ matrix.config.name }}@${{ matrix.config.arch }}
24+
name: ${{ matrix.config.name }}
3225
steps:
3326
- uses: actions/github-script@v7
3427
id: get_release
@@ -50,9 +43,9 @@ jobs:
5043

5144
- name: Install Basilisk
5245
run: |
53-
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/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
46+
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.7.5/bazelisk-${{ matrix.config.platform }}-amd64
47+
chmod a+x bazelisk-${{ matrix.config.platform }}-amd64
48+
sudo mv bazelisk-${{ matrix.config.platform }}-amd64 /usr/local/bin/bazel
5649
5750
- name: Build grpc_php_plugin and grpc_pyhon_plugin
5851
run: |
@@ -64,18 +57,18 @@ jobs:
6457
run: |
6558
cd bazel-bin/src/compiler/
6659
cp grpc_php_plugin grpc-php-plugin
67-
tar czf grpc-php-plugin.${VERSION}.${{ matrix.config.platform }}.${{ matrix.config.arch }}.tar.gz grpc-php-plugin
60+
tar czf grpc-php-plugin.${VERSION}.${{ matrix.config.platform }}.amd64.tar.gz grpc-php-plugin
6861
cp grpc_python_plugin grpc-python-plugin
69-
tar czf grpc-python-plugin.${VERSION}.${{ matrix.config.platform }}.${{ matrix.config.arch }}.tar.gz grpc-python-plugin
62+
tar czf grpc-python-plugin.${VERSION}.${{ matrix.config.platform }}.amd64.tar.gz grpc-python-plugin
7063
7164
- name: Upload Release Asset for grpc_php_plugin
7265
uses: actions/upload-release-asset@v1
7366
env:
7467
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7568
with:
7669
upload_url: ${{ steps.get_release.outputs.upload_url }}
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
70+
asset_path: bazel-bin/src/compiler/grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64.tar.gz
71+
asset_name: grpc-php-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64.tar.gz
7972
asset_content_type: application/gzip
8073

8174
- name: Upload Release Asset for grpc_python_plugin
@@ -84,6 +77,6 @@ jobs:
8477
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8578
with:
8679
upload_url: ${{ steps.get_release.outputs.upload_url }}
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
80+
asset_path: bazel-bin/src/compiler/grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64.tar.gz
81+
asset_name: grpc-python-plugin.${{ steps.get_release.outputs.tag }}.${{ matrix.config.platform }}.amd64.tar.gz
8982
asset_content_type: application/gzip

0 commit comments

Comments
 (0)