Use Github actions to compile Linux builds #7
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: CI | |
on: | |
# Run on pushes to tags, the "master" branch, and PR's | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:latest | |
steps: | |
# Must install git before checking out the repo otherwise github doesn't fetch the .git directory. | |
- name: Install dependencies | |
run: | | |
apt update | |
apt install --yes build-essential git libjpeg-dev libsdl2-dev libcurl4-openssl-dev libpng-dev libfreetype-dev libvorbis-dev | |
- name: Fetch repository | |
uses: actions/checkout@v4.1.1 | |
with: | |
# make the .git directory available so `git describe` works | |
fetch-depth: '0' | |
# currently there aren't any relevant tags, lets ignore the 2014 one | |
fetch-tags: 'false' | |
- name: Compile DP | |
run: | | |
# prevent git complaining about dubious ownership | |
chown -R root . | |
# fetch refs so `git describe` works | |
git fetch --all --no-tags | |
make sdl-release | |
- name: Upload Linux artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Linux | |
path: | | |
darkplaces-sdl | |