Skip to content

Commit 0449c2e

Browse files
authored
Merge pull request #2 from lefessan/z-2024-01-13-simple-github-workflow
Add simple Github workflow
2 parents e403722 + f28585b commit 0449c2e

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ubuntu.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Ubuntu Workflow
2+
3+
on:
4+
pull_request:
5+
branches: [ master-with-README ]
6+
push:
7+
# manual run in actions tab - for all branches
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build, test and provide nightly
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
include:
19+
- os: ubuntu-latest
20+
skip_test: true
21+
22+
runs-on: ${{ matrix.os }}
23+
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- name: Checkout code
27+
uses: actions/checkout@v3
28+
29+
- name: Install packages
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install automake libtool libdb5.3-dev libxml2-dev libcjson-dev bison flex help2man gettext texlive
33+
34+
- name: Set git user
35+
run: |
36+
git config --global user.name github-actions
37+
git config --global user.email github-actions-bot@users.noreply.github.com
38+
39+
- name: bootstrap
40+
run: |
41+
make pdf
42+
43+
- name: Upload some pdfs
44+
uses: actions/upload-artifact@v3.1.0
45+
with:
46+
name: gnucobol-docs PDF distribution
47+
path: guide/PDFs/*.pdf
48+
if-no-files-found: error
49+
retention-days: 0

0 commit comments

Comments
 (0)