Skip to content

Release

Release #66

Workflow file for this run

name: Release
on:
schedule:
- cron: 0 0 * * *
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:
paths:
# trigger release workflow only if this file changed
- .github/workflows/release.yml
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
- name: Build gramamrs
if: always()
run: |
mkdir build
build-tree-sitter ./grammars ./build
- uses: actions/upload-artifact@v3
if: always()
with:
name: lapce-${{ matrix.os }}
path: |
./build
retention-days: 1