-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.3 KB
/
pahole.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
name: pahole-staging
on:
schedule:
- cron: '0 18 * * *'
jobs:
vmtest:
runs-on: ubuntu-latest
name: Kernel LATEST + staging pahole
env:
STAGING: tmp.master
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Get current pahole sha
id: current_sha
run:
git ls-remote https://git.kernel.org/pub/scm/devel/pahole/pahole.git $STAGING | awk '{print "::set-output name=sha::" $1}'
- name: Get latest result for this sha
id: latest
uses: pat-s/always-upload-cache@v2
with:
path: last_tested_pahole
key: ${{ steps.current_sha.outputs.sha }}
- name: Return cached test result
run: exit `cat last_tested_pahole || echo 1` # if file is empty that mean previous run timed out of canceled, returning failure
if: steps.latest.outputs.cache-hit == 'true'
- uses: ./.github/actions/vmtest
with:
kernel: LATEST
pahole: $STAGING
if: steps.latest.outputs.cache-hit != 'true'
- name: Save success
run: echo 0 > last_tested_pahole
if: steps.latest.outputs.cache-hit != 'true'
- name: Save failure
run: echo 1 > last_tested_pahole
if: ${{ failure() && steps.latest.outputs.cache-hit != 'true' }}