-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.03 KB
/
build-protoc.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
---
name: Build protoc
run-name: Build protoc
on:
push:
workflow_dispatch:
jobs:
protoc:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
strategy:
# ensure protoc is built first
max-parallel: 1
matrix:
image:
- protoc
- protoc-cpp
- protoc-go
- protoc-java
- protoc-node
- protoc-swift
- protoc-web
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: linux/amd64,linux/arm64
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: ./publish.sh
env:
RELEASE_TAG: ${{ github.ref_name == github.event.repository.default_branch }}
IMAGE: ${{ matrix.image }}