Skip to content
Permalink
Browse files

Add Continuous Integration (#671)

Uses Github Actions to run make and upload the build artifacts
  • Loading branch information
NickZ committed Feb 28, 2020
1 parent 2de1ff1 commit 50e97bcd2c288f315fea85fd9920dfcbfeb169ee
Showing with 56 additions and 0 deletions.
  1. +56 −0 .github/workflows/make.yml
@@ -0,0 +1,56 @@
name: Continuous Integration

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get full repository history
run: |
git remote add freedoom https://github.com/freedoom/freedoom.git
git fetch --all
- name: Install Prerequisites
run: |
sudo apt update
sudo apt install python3-pil asciidoc unzip zip ruby dos2unix
sudo gem install asciidoctor-pdf --pre
- name: Install Deutex
run: |
git clone https://github.com/Doom-Utils/deutex.git
cd deutex
git checkout v5.2.1
sudo apt install libpng-dev
./bootstrap
./configure
make
sudo make install
- name: Build
id: buildstep
run: |
make dist
mkdir -p artifacts/freedoom
mkdir -p artifacts/freedm
unzip wads/freedoom-*.zip -d artifacts/freedoom
unzip wads/freedm-*.zip -d artifacts/freedm
export VERSION=$(git describe --abbrev=8)
if [[ ${VERSION:0:1} == "v" ]]; then
export VERSION=${VERSION:1}
fi
echo "::set-output name=VERSION::$VERSION"
- name: Upload Freedoom
uses: actions/upload-artifact@v1
with:
path: "artifacts/freedoom"
name: freedoom-${{steps.buildstep.outputs.VERSION}}
- name: Upload Freedm
uses: actions/upload-artifact@v1
with:
path: "artifacts/freedm"
name: freedm-${{steps.buildstep.outputs.VERSION}}

0 comments on commit 50e97bc

Please sign in to comment.
You can’t perform that action at this time.