-
Notifications
You must be signed in to change notification settings - Fork 15
103 lines (95 loc) · 2.87 KB
/
build.yaml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: build
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
- 'smoke-tests/matrix'
pull_request_target:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/[email protected]
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
submodules: true
- name: create checksum file
uses: hypertrace/github-actions/checksum@main
- name: Cache packages
id: cache-packages
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
restore-keys: |
gradle-packages-${{ runner.os }}-${{ github.job }}
gradle-packages-${{ runner.os }}
- name: build
run: make build
env:
JVM_OPTS: -Xmx1g
TERM: dumb
muzzle:
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
submodules: true
- name: create checksum file
uses: hypertrace/github-actions/checksum@main
- name: Cache packages
id: cache-packages
uses: actions/cache@v2
with:
path: ~/.gradle
key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
restore-keys: |
gradle-packages-${{ runner.os }}-${{ github.job }}
gradle-packages-${{ runner.os }}
- name: muzzle
run: make muzzle
env:
JVM_OPTS: -Xmx1g
TERM: dumb
#TODO
# dependency-check:
# runs-on: ubuntu-20.04
# steps:
# - name: Check out code
# uses: actions/[email protected]
# with:
# ref: ${{github.event.pull_request.head.ref}}
# repository: ${{github.event.pull_request.head.repo.full_name}}
# fetch-depth: 0
# submodules: true
#
# - name: create checksum file
# uses: hypertrace/github-actions/checksum@main
#
# - name: Cache packages
# id: cache-packages
# uses: actions/cache@v2
# with:
# path: ~/.gradle
# key: gradle-packages-${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/checksum.txt') }}
# restore-keys: |
# gradle-packages-${{ runner.os }}-${{ github.job }}
# gradle-packages-${{ runner.os }}
#
# - name: dependency check
# run: make dependency-check
# env:
# JVM_OPTS: -Xmx1g
# TERM: dumb