name: Package bygfoot

on: push

env:
  BYGFOOT_VERSION: "2.3.3-unofficial-git-${{ github.sha }}"

jobs:
  package-linux:
    runs-on:
      - ubuntu-16.04
    steps:
      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install dependencies
        run: sudo apt-get install libglib2.0-dev libgtk2.0-dev libpango1.0-dev libatk1.0-dev libfreetype6-dev ninja-build

      - name: Package Bygfoot
        run: ./scripts/package-linux.sh .

      - name: Upload artifact
        uses: actions/upload-artifact@v2
        with:
          name: "bygfoot-${{ env.BYGFOOT_VERSION }}"
          path: "*.bz2"
