-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (53 loc) · 1.4 KB
/
rocky8.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
---
name: Rocky8
on:
push:
branches: [ master ]
paths-ignores:
- '*.md'
- 'examples/*.bash'
- 'docker/**'
- '.github/workflows/ubuntu.yml'
- '.github/workflows/docker.yml'
- '.github/workflows/ubuntu.yml'
- '.github/workflows/linter.yml'
pull_request:
branches: [ master ]
jobs:
Rocky8:
runs-on: ubuntu-latest
container: rockylinux/rockylinux:8
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '18.0.2'
- name: Install required packages
run: |
dnf update -y
dnf install -y git make sudo which maven wget tree
- name: Check JAVA configuration
run: |
which java
which mvn
- name: Elasticsearch
run: |
make install.esrpm
make conf.es
make conf.es.show
- name: Configuration
run: |
make init
echo "JAVA_HOME:=${JAVA_HOME}" > ./configure/CONFIG_COMMON.local
echo "JAVA_PATH:=${JAVA_HOME}/bin" >> ./configure/CONFIG_COMMON.local
echo "MAVEN_HOME:=/usr/" >> ./configure/CONFIG_COMMON.local
echo "MAVEN_PATH:=/usr/bin" >> ./configure/CONFIG_COMMON.local
make vars
make conf
- name: Build
run: |
make build
make cf_install
- name: Environment Check
run: make exist