File: make.yml

package info (click to toggle)
freedoom 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 48,712 kB
  • sloc: python: 3,513; makefile: 529; xml: 188; sh: 73
file content (55 lines) | stat: -rw-r--r-- 1,563 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Continuous Integration

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    
    steps:
    - uses: actions/checkout@v3
      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 "VERSION=$VERSION" >> $GITHUB_OUTPUT
    - 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}}