Skip to content

Commit 299672d

Browse files
Start generating verifiable builds in CI (#87)
* Start generating verifiable builds in CI * Fix GitHub action file name * Remove pre-anchor setup from action * Commit verifiable builds back to mainline * Use the same Solana cli version as the base image * Fix typo in ellipsis labs docker image * Factor out the action to another repo * Add vault and migrator to verifiable builds * Update version in workflow * Use different jobs so they can run in parallel * Remove nothing.txt * Change the way that git pull is done * Commit from GitHub Actions (generate-verifiable-builds) * Make anchor & solana versions configurable * Update autocrat_migrator verifiable build * Add pulls to verifiable builds * Update conditional_vault verifiable build --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8dfa34d commit 299672d

5 files changed

Lines changed: 58 additions & 2 deletions

File tree

.github/workflows/anchor-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: metadaoproject/anchor-test@v2.1
1414
with:
15-
anchor-version: '0.28.0'
16-
solana-cli-version: '1.16.0'
15+
anchor-version: '0.29.0'
16+
solana-cli-version: '1.17.16'
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: generate-verifiable-builds
2+
on:
3+
push:
4+
branches:
5+
- production
6+
- develop
7+
8+
jobs:
9+
generate-verifiable-autocrat:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: metadaoproject/anchor-verifiable-build@v0
14+
with:
15+
program: autocrat_v0
16+
anchor-version: '0.29.0'
17+
solana-cli-version: '1.17.16'
18+
- run: 'git pull --rebase'
19+
- run: cp target/deploy/autocrat_v0.so ./verifiable-builds
20+
- name: Commit verifiable build back to mainline
21+
uses: EndBug/add-and-commit@v9.1.4
22+
with:
23+
default_author: github_actions
24+
message: 'Update autocrat_v0 verifiable build'
25+
generate-verifiable-vault:
26+
runs-on: ubuntu-20.04
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: metadaoproject/anchor-verifiable-build@v0
30+
with:
31+
program: conditional_vault
32+
anchor-version: '0.29.0'
33+
solana-cli-version: '1.17.16'
34+
- run: 'git pull --rebase'
35+
- run: cp target/deploy/conditional_vault.so ./verifiable-builds
36+
- name: Commit verifiable build back to mainline
37+
uses: EndBug/add-and-commit@v9.1.4
38+
with:
39+
default_author: github_actions
40+
message: 'Update conditional_vault verifiable build'
41+
generate-verifiable-migrator:
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- uses: actions/checkout@v3
45+
- uses: metadaoproject/anchor-verifiable-build@v0
46+
with:
47+
program: autocrat_migrator
48+
anchor-version: '0.29.0'
49+
solana-cli-version: '1.17.16'
50+
- run: 'git pull --rebase'
51+
- run: cp target/deploy/autocrat_migrator.so ./verifiable-builds
52+
- name: Commit verifiable build back to mainline
53+
uses: EndBug/add-and-commit@v9.1.4
54+
with:
55+
default_author: github_actions
56+
message: 'Update autocrat_migrator verifiable build'
216 KB
Binary file not shown.

verifiable-builds/autocrat_v0.so

362 KB
Binary file not shown.
500 KB
Binary file not shown.

0 commit comments

Comments
 (0)