-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from parca-dev/download_libc
Add glibc offsets
- Loading branch information
Showing
37 changed files
with
1,647 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ tmp | |
|
||
/structlayout | ||
/mergelayout | ||
/debdownload | ||
/debuginfofind | ||
/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.