-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.56 KB
/
ubuntu.yml
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
56
57
58
59
60
61
62
63
name: Ubuntu Workflow
on:
pull_request:
branches: [ master-with-README ]
push:
# manual run in actions tab - for all branches
workflow_dispatch:
jobs:
build:
name: Build, test and provide nightly
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
include:
- os: ubuntu-latest
skip_test: true
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v3
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install automake libtool libdb5.3-dev libxml2-dev libcjson-dev bison flex help2man gettext texlive texlive-latex-extra texlive-plain-generic
- name: Set git user
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Generate PDFs
run: |
cd guide
make pdf
- name: Upload all pdfs
uses: actions/[email protected]
with:
name: gnucobol-docs-all-pdfs
path: guide/PDFs/*.pdf
if-no-files-found: error
retention-days: 0
- name: Generate HTML
run: |
cd guide
make html
- name: Upload HTML
uses: actions/[email protected]
with:
name: gnucobol-docs-html
path: guide/HTML
if-no-files-found: error
retention-days: 0