-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (50 loc) · 1.26 KB
/
release.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Release
on:
schedule:
- cron: 0 0 */7 * *
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for release'
required: false
default: nightly
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+*"]
pull_request:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
env:
RELEASE_TAG_NAME: ${{ inputs.tag_name }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu'
run: |
sudo apt-get -y update
sudo apt-get -y install curl wget clang pkg-config
- name: Update rust
run: rustup update
- name: Fetch dependencies
run: |
cargo install --path ./build-tree-sitter --locked
cargo install tree-sitter-cli --locked
- name: Build grammars
if: always()
run: |
build-tree-sitter --output ./output
- uses: actions/upload-artifact@v3
if: always()
with:
name: lapce-${{ matrix.os }}
path: |
./output
retention-days: 1