diff options
author | actboy168 <actboy168@gmail.com> | 2023-03-09 21:33:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 21:33:36 +0800 |
commit | 311412d57b9cb72fcf6e572cbba8a7c94e900aba (patch) | |
tree | 9cd40ea353c03afe9e71bf82e80b8561e8c330f0 /.github/workflows | |
parent | f66eed6db3df6f0aa050fe8c2f2f78ce98b56803 (diff) | |
download | lua-language-server-311412d57b9cb72fcf6e572cbba8a7c94e900aba.zip |
Update build.yml
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ff7c0a9..835f6b72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,8 +42,6 @@ jobs: add-apt-repository -y ppa:git-core/ppa # For git>=2.18. apt-get update apt-get install -y sudo git gcc-9 g++-9 - update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 - update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100 - name: Install aarch64-linux-gnu if: ${{ matrix.platform == 'linux-arm64' }} @@ -51,6 +49,12 @@ jobs: apt-get update apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu + - name: Prepare container + if: ${{ matrix.target == 'linux' }} + run: | + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100 + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100 + - uses: actions/checkout@v3 with: submodules: recursive |