Skip to content

Commit 809912f

Browse files
committed
Merge branch 'master' into track-allocations-for-errors
# Conflicts: # pass/alloc.go # reg/types.go # reg/x86.go
2 parents fe08d14 + e2b6ba5 commit 809912f

File tree

258 files changed

+313794
-73021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+313794
-73021
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: create-pull-request
2+
description: Create Pull Request
3+
inputs:
4+
bot:
5+
description: "Bot username"
6+
required: false
7+
default: "cadobot[bot]"
8+
app_id:
9+
description: "Bot App ID"
10+
required: true
11+
app_private_key:
12+
description: "Bot App Private Key"
13+
required: true
14+
title:
15+
description: "Pull request title"
16+
required: true
17+
branch:
18+
description: "Branch name"
19+
required: true
20+
body:
21+
description: "Body of the pull request"
22+
required: true
23+
draft:
24+
description: "Create draft pull request"
25+
required: false
26+
default: false
27+
runs:
28+
using: composite
29+
steps:
30+
- name: Get Bot User
31+
id: bot
32+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
33+
with:
34+
script: |
35+
const res = await github.rest.users.getByUsername({username: '${{ inputs.bot }}'});
36+
for (const [key, value] of Object.entries(res.data)) {
37+
core.setOutput(key, value)
38+
}
39+
- name: Generate App Token
40+
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c # v1.7.0
41+
id: app
42+
with:
43+
app_id: ${{ inputs.app_id }}
44+
private_key: ${{ inputs.app_private_key }}
45+
- name: Create Pull Request
46+
uses: peter-evans/create-pull-request@331d02c7e2104af23ad5974d4d5cbc58a3e6dc77 # v4.2.2
47+
with:
48+
token: ${{ steps.app.outputs.token }}
49+
commit-message: ${{ inputs.title }}
50+
author: "${{ steps.bot.outputs.login }} <${{ steps.bot.outputs.id }}+${{ steps.bot.outputs.login }}@users.noreply.github.com>"
51+
branch: ${{ inputs.branch }}
52+
base: master
53+
delete-branch: true
54+
draft: ${{ inputs.draft }}
55+
title: ${{ inputs.title }}
56+
body: ${{ inputs.body }}

.github/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- cadobot

.github/workflows/ci.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: ci
2+
permissions:
3+
contents: read
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
schedule:
10+
- cron: "17 12 * * 6"
11+
jobs:
12+
# Required job is a stub which only runs when other dependencies complete
13+
# successfully. This is intended to be listed as a required check in a branch
14+
# protection rule.
15+
required:
16+
needs:
17+
- test
18+
- coverage
19+
- lint
20+
runs-on: ubuntu-latest
21+
steps:
22+
- run: "true"
23+
test:
24+
strategy:
25+
matrix:
26+
go-version: [1.21.x, 1.22.x]
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Install Go
30+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
31+
with:
32+
go-version: ${{ matrix.go-version }}
33+
check-latest: true
34+
- name: Checkout code
35+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
36+
with:
37+
persist-credentials: false
38+
- name: Bootstrap
39+
run: ./script/bootstrap
40+
- name: Build
41+
run: go build ./...
42+
- name: Test
43+
run: go test -bench . ./...
44+
coverage:
45+
needs:
46+
- test
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Install Go
50+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
51+
with:
52+
go-version: 1.22.x
53+
check-latest: true
54+
- name: Checkout code
55+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
56+
with:
57+
persist-credentials: false
58+
- name: Bootstrap
59+
run: ./script/bootstrap
60+
- name: Coverage
61+
run: ./script/coverage
62+
- name: Upload Unit Test Coverage
63+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}
66+
files: unittests.coverprofile
67+
flags: unittests
68+
- name: Upload Integration Test Coverage
69+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
files: integration.coverprofile
73+
flags: integration
74+
lint:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Install Go
78+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
79+
with:
80+
go-version: 1.22.x
81+
check-latest: true
82+
- name: Checkout code
83+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
84+
with:
85+
persist-credentials: false
86+
- name: Bootstrap
87+
run: ./script/bootstrap
88+
- name: Lint
89+
run: ./script/lint

.github/workflows/deps.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: deps
2+
permissions:
3+
contents: read
4+
on:
5+
schedule:
6+
- cron: "22 5 2 * *"
7+
jobs:
8+
upgrade:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
13+
with:
14+
go-version: 1.22.x
15+
- name: Checkout code
16+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
17+
with:
18+
persist-credentials: false
19+
- name: Upgrade Modules
20+
run: go get -u ./...
21+
- name: Tidy
22+
run: go mod tidy
23+
- name: Diff
24+
run: git diff
25+
- name: Create Pull Request
26+
uses: ./.github/actions/create-pull-request
27+
with:
28+
app_id: ${{ secrets.APP_ID }}
29+
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
30+
branch: auto-upgrade-deps
31+
title: "all: upgrade direct dependencies"
32+
body: "Auto-generated upgrade of module dependencies."

.github/workflows/metadata.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: metadata
2+
permissions:
3+
contents: read
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "24 5 1 * *"
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install Go
13+
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1
14+
with:
15+
go-version: 1.22.x
16+
- name: Checkout code
17+
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
18+
with:
19+
persist-credentials: false
20+
- name: Bootstrap
21+
run: ./script/bootstrap
22+
- name: Generate App Token
23+
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c # v1.7.0
24+
id: app
25+
with:
26+
app_id: ${{ secrets.APP_ID }}
27+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
28+
- name: Update Package Metadata
29+
env:
30+
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
31+
run: ./script/metadata
32+
- name: Diff
33+
run: git diff
34+
- name: Generate
35+
run: ./script/generate
36+
- name: Diff
37+
run: git diff
38+
- name: Create Pull Request
39+
uses: ./.github/actions/create-pull-request
40+
with:
41+
app_id: ${{ secrets.APP_ID }}
42+
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
43+
branch: auto-tests-thirdparty-update-metadata
44+
title: "tests/thirdparty: update package metadata"
45+
body: "Auto-generated update of third-party package metadata."

0 commit comments

Comments
 (0)