install bazel using wget

pull/10830/head
Sandy Zhang 2 years ago
parent 51b812dd28
commit 70c4bdc744
  1. 10
      .github/workflows/php-ext.yml

@ -17,10 +17,12 @@ jobs:
steps: steps:
- name: Install bazel - name: Install bazel
run: | run: |
apt-get update -q mkdir $HOME/bin
apt-get install -qy bazel wget -O $HOME/bin/bazel https://github.com/bazelbuild/bazel/releases/download/5.3.2/bazel-5.3.2-linux-x86_64
chmod a+x $HOME/bin/bazel
- name: Install git - name: Install git
run: | run: |
apt-get update -q
apt-get install -qy --no-install-recommends git apt-get install -qy --no-install-recommends git
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -28,9 +30,9 @@ jobs:
submodules: recursive submodules: recursive
- name: Create package - name: Create package
run: | run: |
rm -rf bazel-bin/php/protobuf-*.tgz
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
bazel build php:release rm -rf bazel-bin/php/protobuf-*.tgz
$HOME/bin/bazel build php:release
- name: Compile extension - name: Compile extension
run: | run: |
cd /tmp cd /tmp

Loading…
Cancel
Save