Release 1.3-5 #22
Workflow file for this run
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: build | |
on: | |
pull_request: | |
types: [opened, reopened] | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Building library | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout lua-vosk | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
path: luavosk | |
- name: Minor preparations | |
run: | | |
sudo apt update | |
sudo apt install gcc-aarch64-linux-gnu mingw-w64 | |
- name: Get previous tag | |
working-directory: luavosk | |
id: prevtag | |
shell: bash | |
run: | | |
echo "tag=$(git describe --abbrev=0 --tags ${{ github.ref_name }}^)" >> $GITHUB_OUTPUT | |
- name: Init Lua 5.1 | |
working-directory: luavosk/misc | |
run: ./init.sh | |
- name: Linux x64 build | |
working-directory: luavosk/misc | |
run: ./build-linux-x64.sh | |
- name: Linux arm64 build | |
working-directory: luavosk/misc | |
run: ./build-linux-arm64.sh | |
- name: Windows x64 build | |
working-directory: luavosk/misc | |
run: ./build-win-x64.sh | |
- name: Zip it up | |
working-directory: luavosk/misc/out | |
run: | | |
zip -q lua51-mingw-x64.zip win-amd64/luavosk.dll | |
zip -q lua51-linux-arm64.zip linux-arm64/luavosk.so | |
zip -q lua51-linux-x64.zip linux-amd64/luavosk.so | |
cd ../../ | |
zip -q -u -r ./misc/out/lua51-mingw-x64.zip test/ README.md LICENSE | |
zip -q -u -r ./misc/out/lua51-linux-arm64.zip test/ README.md LICENSE | |
zip -q -u -r ./misc/out/lua51-linux-x64.zip test/ README.md LICENSE | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Release ${{ github.ref_name }} | |
body: "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ steps.prevtag.outputs.tag }}...${{ github.ref_name }}" | |
files: | | |
./luavosk/misc/out/lua51-mingw-x64.zip | |
./luavosk/misc/out/lua51-linux-arm64.zip | |
./luavosk/misc/out/lua51-linux-x64.zip |