mirror of
https://github.com/LibreSplit/LibreSplit.git
synced 2026-03-11 15:30:30 +00:00
33 lines
867 B
YAML
33 lines
867 B
YAML
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
|