-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (59 loc) · 1.56 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
59
60
61
62
63
64
65
66
67
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.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- runs-on: windows-latest
artefact: windows-x86_64
- runs-on: ubuntu-latest
artefact: linux-x86_64
- runs-on: macos-14
artefact: macos-arm64
- runs-on: macos-13
artefact: macos-x86_64
env:
RELEASE_TAG_NAME: ${{ inputs.tag_name }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Ubuntu dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get -y update
sudo apt-get -y install curl wget clang pkg-config
sudo update-alternatives --set cc /usr/bin/clang
- 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.artefact }}
path: |
output
retention-days: 1