parsers: bump to tree-sitter 0.23.0 #161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cd | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- v[0-9]+.[0-9]+ | |
jobs: | |
build: | |
name: ${{ matrix.platform }} (${{ matrix.os }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- linux-x64 | |
- macos-arm64 | |
include: | |
- { platform: linux-x64, os: ubuntu-latest } | |
- { platform: macos-arm64, os: macos-14 } | |
runs-on: ${{ matrix.os }} | |
env: | |
PLATFORM: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download tsdl | |
run: | | |
curl -o tsdl.gz -L "https://github.com/stackmystack/tsdl/releases/latest/download/tsdl-${{ matrix.platform }}.gz" | |
gunzip tsdl.gz | |
chmod +x tsdl | |
- name: Build | |
run: | | |
./tsdl build --out-dir lib/${{ matrix.platform}} | |
- name: Prepare git # To get tags from `git describe` | |
run: | | |
git fetch --prune --unshallow | |
- name: Make .deb | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
./package/deb | |
- name: Make zip and tar | |
run: | | |
./package/zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.vars.outputs.sha_short }} | |
name: Release ${{ github.ref }}-${{ steps.vars.outputs.sha_short }} | |
draft: true | |
files: | | |
./lib/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
release-fixed-assets: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare git # To get tags from `git describe` | |
run: git fetch --prune --unshallow | |
- name: Release | |
if: ${{ github.event_name == 'schedule' }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: Release | |
draft: true | |
prerelease: false | |
files: ref | |
tag_name: ${{ steps.vars.outputs.sha_short }} | |
make_latest: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |