Skip to content

release: release v0.1.0 #8

release: release v0.1.0

release: release v0.1.0 #8

Workflow file for this run

name: Build
on:
push:
branches: [master]
jobs:
windows-x86_64:
name: Build for Windows x86_64
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
strategy:
matrix:
lua:
- ver: lua
make_opts:
- ver: lua51
make_opts: LUA_INC=-I/mingw64/include/lua5.1 LIBS=-llua5.1
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
base-devel
git
mingw-w64-x86_64-gcc
mingw-w64-x86_64-${{ matrix.lua.ver }}
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build lua-tree-sitter
run: make lua_tree_sitter.dll ${{ matrix.lua.make_opts }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: lua-tree-sitter-windows-x86_64-${{ matrix.lua.ver }}
path: lua_tree_sitter.dll
linux-x86_64:
name: Build for Linux x86_64
runs-on: ubuntu-latest
strategy:
matrix:
lua:
- ver: lua
make_opts:
- ver: lua51
make_opts: LUA_INC=-I/usr/include/lua5.1 LIBS=-llua5.1
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: 'Build'
uses: docker://archlinux:latest
with:
args: >-
sh -c "
pacman -Sy --noconfirm make gcc ${{ matrix.lua.ver }} &&
make lua_tree_sitter.so ${{ matrix.lua.make_opts }}
"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: lua-tree-sitter-linux-x86_64-${{ matrix.lua.ver }}
path: lua_tree_sitter.so