-
Notifications
You must be signed in to change notification settings - Fork 39
65 lines (65 loc) · 1.95 KB
/
Copy pathtime-package.yml
File metadata and controls
65 lines (65 loc) · 1.95 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Automatic package creation based on the monthly tag
on:
workflow_dispatch:
push:
tags:
- v0.0.**
permissions:
id-token: write
attestations: write
contents: read
jobs:
package:
name: Createa Debian package
runs-on: ubuntu-latest
env:
GO111MODULE: on
CI_PIPELINE: true
steps:
- uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: false
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Install NVIDIA Attestation SDK headers
uses: ./.github/actions/install-nvat-dev
- name: Install mockgen
run: |
go install github.com/golang/mock/mockgen@v1.7.0-rc.1
- name: Install gopls
run: |
go install golang.org/x/tools/gopls@latest
- name: Install guru
run: |
go install golang.org/x/tools/cmd/guru@latest
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: protoc-gen deps
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
go install github.com/mitchellh/protoc-gen-go-json@v1.1.0
- name: Install packaging deps
uses: ConorMacBride/install-package@v1
with:
apt: openssl sqlite3 gettext findutils jq
- name: create deb
run: |
mkdir /tmp/veraison-package
deployments/debian/deployment.sh create-deb /tmp/veraison-package
- name: upload deb
uses: actions/upload-artifact@v4
with:
name: Veraison services Debian package
path: /tmp/veraison-package/*deb
- name: attest deb
uses: actions/attest-build-provenance@v2
with:
subject-path: /tmp/veraison-package/*deb