forked from LuaLS/lua-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 961 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: test
on: [ push, pull_request ]
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-20.04, target: linux, platform: linux-x64 }
- { os: macos-14, target: darwin, platform: darwin-arm64 }
- { os: windows-latest, target: windows, platform: win32-x64 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build for Windows
if: ${{ matrix.target == 'windows' }}
run: .\make.bat
- name: Build for Linux
if: ${{ matrix.target == 'linux' }}
run: |
sudo apt update
sudo apt install ninja-build
./make.sh
- name: Build for macOS
if: ${{ matrix.target == 'darwin' }}
run: |
brew install ninja
./make.sh