summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-17 18:41:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-17 18:41:52 +0800
commitb85cf5df0eebe42f7095e1e9c695a80266cdc6a0 (patch)
tree8740376ad0219804ad70ed554a99f91961ebf93c /.github/workflows/build.yml
parentbdf068712004e327fe50e3c3b9e8a3a27a8854a8 (diff)
downloadlua-language-server-b85cf5df0eebe42f7095e1e9c695a80266cdc6a0.zip
不要使用 ubuntu:18.04 的容器了
有需要的人让他提PR
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml26
1 files changed, 2 insertions, 24 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 66640e50..f231e6e5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,8 +24,8 @@ jobs:
matrix:
include:
- { os: ubuntu-22.04, target: linux, platform: linux-x64, container: 'alpine:latest', libc: musl }
- - { os: ubuntu-20.04, target: linux, platform: linux-x64, container: 'ubuntu:18.04' }
- - { os: ubuntu-20.04, target: linux, platform: linux-arm64, container: 'ubuntu:18.04' }
+ - { os: ubuntu-20.04, target: linux, platform: linux-x64 }
+ - { os: ubuntu-20.04, target: linux, platform: linux-arm64 }
- { os: macos-11, target: darwin, platform: darwin-x64 }
- { os: macos-11, target: darwin, platform: darwin-arm64 }
- { os: windows-latest, target: windows, platform: win32-ia32 }
@@ -34,28 +34,6 @@ jobs:
container:
image: ${{ matrix.container }}
steps:
- - name: Prepare container
- if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
- run: |
- apt-get update
- apt-get install -y software-properties-common
- add-apt-repository -y ppa:ubuntu-toolchain-r/test # For gcc-9 and g++-9
- 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
-
- - name: Install aarch64-linux-gnu
- if: ${{ matrix.platform == 'linux-arm64' && matrix.libc != 'musl' }}
- run: |
- apt-get update
- apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
-
- - name: Prepare container env
- if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }}
- 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
-
- name: Prepare container for musl
if: ${{ matrix.target == 'linux' && matrix.libc == 'musl' }}
run: |