Skip to content

Commit 97d8b36

Browse files
author
jpcaulfi
committed
cicd
1 parent 9a5d829 commit 97d8b36

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

.github/workflows/anchor.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Anchor Programs
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: solanadevelopers/solana-workshop-image-anchor
16+
strategy:
17+
matrix:
18+
{
19+
dir:
20+
["basics/account-data/anchor", "basics/checking-accounts/anchor"],
21+
}
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v3
26+
27+
- name: Build program
28+
working-directory: ${{ matrix.dir }}
29+
run: anchor build

.github/workflows/native.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,26 @@ env:
1212
jobs:
1313
build:
1414
name: Build
15-
runs-on: solanadevelopers/solana-workshop-image
15+
runs-on: solanadevelopers/solana-workshop-image:0.0.2
1616
strategy:
1717
matrix:
1818
{
1919
dir:
2020
[
2121
"basics/account-data/native/program",
2222
"basics/checking-accounts/native/program",
23+
"basics/close-account/native/program",
24+
"basics/counter/native",
25+
"basics/create-account/native/program",
26+
"basics/cross-program-invocation/native/program",
27+
"basics/hello-solana/native/program",
28+
"basics/pda-rent-payer/native/program",
29+
"basics/processing-instructions/native/program",
30+
"basics/program-derived-addresses/native/program",
31+
"basics/realloc/native/program",
32+
"basics/rent/native/program",
33+
"basics/repository-layout/native/program",
34+
"basics/transfer-sol/native/program",
2335
],
2436
}
2537

.github/workflows/seahorse.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Native Programs
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: solanadevelopers/solana-workshop-image-seahorse
16+
strategy:
17+
matrix:
18+
{
19+
dir:
20+
[
21+
"basics/counter/seahorse",
22+
"basics/hello-solana/seahorse",
23+
"basics/transfer-sol/seahorse",
24+
],
25+
}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Build program
32+
working-directory: ${{ matrix.dir }}
33+
run: cargo build-sbf --verbose

0 commit comments

Comments
 (0)