forked from metaplex-foundation/metaplex-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (33 loc) · 1.07 KB
/
action.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
# Implicit dependencies
# - actions/checkout@v3
# - ./.github/actions/install-linux-build-deps
# - ./.github/actions/install-solana
# - ./.github/actions/install-rust
name: Build Program
description: Builds the specified Rust program based on the `name` input
inputs:
name:
description: The name of the program to build
required: true
runs:
using: 'composite'
steps:
# - name: "Cache: ${{ inputs.name }}"
# uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# ./${{ inputs.name }}/program/target/
# key:
# program-${{ inputs.name }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# id: cache-program
- name: "Build: ${{ inputs.name }}"
working-directory: ./${{ inputs.name }}/program
run: |
mkdir -p ../../test-programs
cargo +${{ env.RUST_STABLE }} build-bpf --version
cargo +${{ env.RUST_STABLE }} build-bpf --bpf-out-dir ../../test-programs/
shell: bash