-
Notifications
You must be signed in to change notification settings - Fork 71
50 lines (49 loc) · 1.73 KB
/
build.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
# setup @see https://help.github.com/en/articles/workflow-syntax-for-github-actions
# environment @see https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions
# https://help.github.com/en/articles/virtual-environments-for-github-actions
# example @see https://github.com/actions/toolkit/blob/master/.github/workflows/workflow.yml
name: Main Building
# This workflow is triggered on pushes to the repository.
on: # @see https://help.github.com/en/articles/events-that-trigger-workflows#webhook-events
push:
branches: # Array of patterns that match refs/heads
- master # Push events on master branch
- main
pull_request:
branches:
- main
# schedule:
# - cron: 0 * * * *
jobs:
build: # job id, can be any string
# Job name is Build And Publish
name: Build
# This job runs on Linux
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3 # https://github.com/actions/checkout
with:
lfs: true
submodules: true
- name: Set up JDK 11
uses: actions/setup-java@v3 # https://github.com/actions/setup-java
with:
distribution: temurin
java-version: "11"
java-package: jdk
architecture: x64
- name: Build with Maven
# uses: .github/action/build-with-maven
run: |
cd tools
python3 -m pip install --user -r requirements.txt
python3 gen_header_v2.py
python3 gen_header_v3.py
cd ..
mvn package --file pom.xml
cd sample
bash gen_sample_output.sh