4 # Run on pushes to tags, the "master" branch, and PR's
13 runs-on: ubuntu-latest
17 # Must install git before checking out the repo otherwise github doesn't fetch the .git directory.
18 - name: Install dependencies
21 apt install --yes build-essential git libjpeg-dev libsdl2-dev libcurl4-openssl-dev libpng-dev libfreetype-dev libvorbis-dev
23 - name: Fetch repository
24 uses: actions/checkout@v4.1.1
26 # make `git describe` show the correct commit hash
31 # prevent git complaining about dubious ownership of the repo
33 # fail if `git describe` doesn't work (required for the buildstring)
35 # fail if there's any warnings
36 export CC="cc -Werror"
39 - name: Upload Linux artifacts
40 uses: actions/upload-artifact@v4