diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 17:25:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2024-06-05 17:25:09 +0800 |
commit | 825fb7ee5e718ab3c6edfa35061345db8a76e152 (patch) | |
tree | 39908fc8c259a08b8f8b7c9059f1397444c5e68e | |
parent | 23259fc4095919d812ed05ce73605aaaf98f405a (diff) | |
download | lua-language-server-825fb7ee5e718ab3c6edfa35061345db8a76e152.zip |
遴选3.9.1的自动集成
-rw-r--r-- | .github/workflows/build.yml | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfedcd50..b6db21ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,7 @@ on: push: branches: - master + - 'v*.*.*' tags: - "*" pull_request: @@ -46,21 +47,30 @@ jobs: apk update apk add git ninja bash build-base nodejs linux-headers + - name: Prepare for Linux + if: ${{ matrix.target == 'linux' && matrix.libc != 'musl' }} + run: | + sudo apt update + sudo apt install ninja-build + - uses: actions/checkout@v4 with: submodules: recursive - - name: Build for others step-1 - if: ${{ matrix.platform != 'linux-x64' }} - uses: actboy168/setup-luamake@master - - - name: Build for others step-2 - if: ${{ matrix.platform != 'linux-x64' }} - run: luamake -platform ${{ matrix.platform }} + - name: Build for Windows + if: ${{ matrix.target == 'windows' }} + run: .\make.bat ${{ matrix.platform }} - - name: Build for musl - if: ${{ matrix.platform == 'linux-x64' && matrix.libc == 'musl' }} - run: ./make.sh + - name: Build for Linux + if: ${{ matrix.target == 'linux' }} + run: | + ./make.sh ${{ matrix.platform }} + + - name: Build for macOS + if: ${{ matrix.target == 'darwin' }} + run: | + brew install ninja + ./make.sh ${{ matrix.platform }} - name: Build for x64 glibc if: ${{ matrix.platform == 'linux-x64' && matrix.libc != 'musl' }} |