-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (64 loc) · 2.04 KB
/
generate-musl.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 musl
on:
workflow_call:
push:
branches:
- main
- release
paths:
- ".github/workflows/generate-musl.yml"
- "pkg/libc/musl/**"
- "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-musl
key: musl-downloaded-${{ runner.os }}-${{ matrix.arch }}
restore-keys: |
musl-downloaded-${{ runner.os }}-${{ matrix.arch }}
- name: Generate musl Offsets
run: |
TEMP_DIR=workspace-musl make generate/musl
# 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 musl layouts"
title: "chore: Update musl layouts"
branch: update-offsets-musl-${{ github.run_number }}
add-paths: pkg/libc/musl/layout
base: main
labels: chore
draft: false
delete-branch: true