-
Notifications
You must be signed in to change notification settings - Fork 366
40 lines (40 loc) · 1.17 KB
/
Copy pathbuf-binary-size.yaml
File metadata and controls
40 lines (40 loc) · 1.17 KB
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: binary-size
on:
push:
branches:
- main
tags: ["v*"]
pull_request:
# Prevent writing to the repository using the CI token.
# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
MAKEFLAGS: "-j 2"
jobs:
buf-binary-size:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v7
- name: setup-go
uses: actions/setup-go@v7
with:
go-version: "1.27.x"
check-latest: true
- name: cache
uses: actions/cache@v6
with:
path: |
~/.cache/buf/${{ runner.os }}/x86_64/bin
~/.cache/buf/${{ runner.os }}/x86_64/go/pkg/mod
~/.cache/buf/${{ runner.os }}/x86_64/gocache
~/.cache/buf/${{ runner.os }}/x86_64/include
~/.cache/buf/${{ runner.os }}/x86_64/versions
key: ${{ runner.os }}-buf-${{ hashFiles('**/go.sum', 'make/**') }}
restore-keys: |
${{ runner.os }}-buf-
- name: make-bufbinarysize
run: make bufbinarysize