forked from opiproject/opi-api
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.21 KB
/
storage.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
---
name: 'OPI Storage API CI'
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'storage/v1alpha1/**'
- 'storage/Makefile'
- '.github/workflows/storage.yml'
pull_request:
branches: [ main ]
paths:
- 'storage/v1alpha1/**'
- 'storage/Makefile'
- '.github/workflows/storage.yml'
concurrency:
# if workflow for PR or push is already running stop it, and start new one
group: storage-api-${{ github.ref }}
cancel-in-progress: true
jobs:
build-storage-protobuf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@7703e82fbced3d0c9eec08dff4429c023a5fd9a9
- name: Build protobufs
run: make
working-directory: storage
- name: Check uncomitted auto generated protobufs
run: git diff --exit-code
working-directory: storage
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
path: storage/v1/gen/go/*.pb.go
retention-days: 1