-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (65 loc) · 2.54 KB
/
build-test-java-11.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#########################################################################
# #
# File ID: ./.github/workflows/build-test-java-11.yml #
# Author: Copyright (C) 2021, 2022 Mark Grant #
# #
# Released under the GPLv3 only. #
# SPDX-License-Identifier: GPL-3.0-only #
# #
# Purpose: #
# Configuration file for GitHub Actions build tests. Perform a standard #
# build, check and distcheck using Java 11. #
# #
#########################################################################
#########################################################################
# #
# Changelog #
# #
# Date Author Version Description #
# #
# 28/02/2021 MG 1.0.1 Initial release. #
# 29/11/2021 MG 1.0.2 Get tags as needed for git-enhanced #
# AC_INIT. #
# Tighten SPDX tag. #
# 18/10/2022 MG 1.0.3 Run on Focal 20.04 #
# #
#########################################################################
name: Build Test Using Java 11
on:
push:
# Allows manual invocation from the Actions tab.
workflow_dispatch:
jobs:
build-test:
runs-on: ubuntu-20.04
steps:
# Check-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Get all incl tags, needed for git-enhanced AC_INIT
# GHA Bionic defaults to Java 8, however Java 11 is available and is the
# minimum for mainstream.
- uses: actions/setup-java@v1
with:
java-version: '11' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- name: Add the extra PPA
run: sudo add-apt-repository ppa:m-grant-prg/utils -y
- name: Update the package lists
run: sudo apt-get update
- name: Add the extra packages
run: |
sudo apt-get install -y autoconf-archive util-linux
sudo apt-get install -y libgetopt-java
sudo apt-get install -y txt2man txt2manwrap
- name: Autoreconf
run: autoreconf -if .
- name: Configure
run: ./configure --enable-silent-rules=yes --enable-atonly=yes
- name: Make
run: make --quiet
- name: Check
run: make --quiet check
- name: Distcheck
run: make --quiet distcheck