-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (64 loc) · 2.05 KB
/
generate-glibc.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
name: Generate glibc
on:
workflow_call:
push:
branches:
- main
- release
paths:
- ".github/workflows/generate-glibc.yml"
- "pkg/libc/glibc/**"
- "scripts/**"
- "Makefile"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
generate-and-create-branch:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Install devbox
uses: jetpack-io/[email protected]
with:
enable-cache: true
- name: Setup devbox
run: devbox run -- echo "done!"
- name: Load devbox shellenv
uses: HatsuneMiku3939/direnv-action@v1
with:
direnvVersion: 2.32.3
- name: Set up Go tool cache
uses: actions/cache@v4
with:
path: ~/.devbox/go
key: devbox-go-tools.cache-${{ runner.os }}-${{ runner.arch }}
- name: Build
run: make build
- name: Set up cache for downloaded files
uses: actions/cache@v4
with:
path: workspace-glibc
key: glibc-downloaded-${{ runner.os }}-${{ matrix.arch }}
restore-keys: |
glibc-downloaded-${{ runner.os }}-${{ matrix.arch }}
- name: Generate glibc Offsets
run: |
TEMP_DIR=workspace-glibc make generate/glibc
# If there are no changes (i.e. no diff exists with the checked-out base branch),
# no pull request will be created and the action exits silently.
- name: Create a pull-request
if: github.event_name != 'pull_request'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update glibc layouts"
title: "chore: Update glibc layouts"
branch: update-offsets-glibc-${{ github.run_number }}
add-paths: pkg/libc/glibc/layout
base: main
labels: chore
draft: false
delete-branch: true