-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.95 KB
/
Copy pathrelease.yml
File metadata and controls
59 lines (50 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
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: release
# Trigger the workflow when:
on:
# A push occurs to one of the matched tags.
push:
tags:
# Pattern that roughly matches Cipher ParaTime's version tags.
# For more details on GitHub Actions' pattern match syntax, see:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#patterns-to-match-branches-and-tags.
- 'v[0-9]+.[0-9]+*'
jobs:
prepare-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.24.x"
- name: Build tagged release, elf
id: build-elf
uses: oasisprotocol/oasis-sdk/.github/actions/hash-rust@main
with:
image: ghcr.io/oasisprotocol/runtime-builder:main
binaries: keymanager
clean: no
- name: Build tagged release, sgxs
id: build-sgxs
uses: oasisprotocol/oasis-sdk/.github/actions/hash-rust@main
with:
image: ghcr.io/oasisprotocol/runtime-builder:main
binaries: keymanager.sgxs
clean: no
sgx: yes
- name: Create the Oasis Runtime Containers
run: |
go install github.com/oasisprotocol/oasis-sdk/tools/orc@latest
orc init ${KEYMANAGER_EXECUTABLE} --sgx-executable ${KEYMANAGER_SGXS} --output keymanager.orc
orc sgx-set-sig keymanager.orc
env:
KEYMANAGER_EXECUTABLE: ${{ github.workspace }}/${{ steps.build-elf.outputs.build-path }}/keymanager
KEYMANAGER_SGXS: ${{ github.workspace }}/${{ steps.build-sgxs.outputs.build-path }}/keymanager.sgxs
- name: Publish the release
uses: ncipollo/release-action@v1
with:
draft: true
artifacts: keymanager.orc
token: ${{ secrets.GITHUB_TOKEN }}