Improve Lua auto splitting runtime #214
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
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Install dependencies" | |
run: | | |
sudo apt -y update | |
sudo apt -y install libgtk-3-dev libx11-dev libjansson-dev libluajit-5.1-dev | |
- name: "Run make" | |
run: make -j | |
- name: Set Build number | |
shell: bash | |
run: echo "build_number=$(git rev-list HEAD --count)" >> $GITHUB_ENV | |
- name: Compute git short sha | |
shell: bash | |
run: echo "git_short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LibreSplit-${{ env.build_number }}-${{ env.git_short_sha }} | |
path: libresplit |