Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/actions/cache-cargo-build-sbf/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Required input env vars
# - SOLANAVERS

name: "Cache cargo-build-sbf"
description: "caches cargo-build-sbf output in target folder"

runs:
using: "composite"
steps:
- name: cargo-build-sbf Cache
uses: actions/cache@v4
# Make sure vars match those in restore-cache-cargo-build-sbf/action.yaml
with:
path: |
target/CACHEDIR.TAG
target/deploy
target/release
target/.rustc_info.json
target/sbpf-solana-solana
key: ${{ runner.os }}-sbf-${{ env.SOLANAVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sbf-
15 changes: 15 additions & 0 deletions .github/actions/cache-cargo-fetch/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Cache cargo fetch"
description: "caches cargo fetch output"

runs:
using: "composite"
steps:
- name: cargo fetch Cache
uses: actions/cache@v4
with:
# Make sure vars match those in restore-cache-cargo-fetch/action.yaml
path: |
${{ env.CARGO_HOME }}
key: ${{ runner.os }}-rustfetch-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rustfetch-
18 changes: 18 additions & 0 deletions .github/actions/cache-cargo-test-sbf/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Required input env vars
# - SOLANAVERS

name: "Cache cargo-test-sbf"
description: "caches cargo-test-sbf output in target folder"

runs:
using: "composite"
steps:
- name: cargo-test-sbf Cache
uses: actions/cache@v4
with:
path: |
target/CACHEDIR.TAG
target/debug
key: ${{ runner.os }}-sbftest-${{ env.SOLANAVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sbftest-
18 changes: 18 additions & 0 deletions .github/actions/cache-cargo-test/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Required input env vars
# - RUSTVERS

name: "Cache cargo test"
description: "caches cargo test output in target folder"

runs:
using: "composite"
steps:
- name: cargo test Cache
uses: actions/cache@v4
with:
path: |
target/CACHEDIR.TAG
target/debug
key: ${{ runner.os }}-rusttest-${{ env.RUSTVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rusttest-
17 changes: 17 additions & 0 deletions .github/actions/cache-clippy/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Required input env vars
# - RUSTVERS

name: "Cache clippy"
description: "caches cargo clippy output in target folder"

runs:
using: "composite"
steps:
- name: clippy Cache
uses: actions/cache@v4
with:
path: |
target
key: ${{ runner.os }}-rustlint-${{ env.RUSTVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rustlint-
22 changes: 22 additions & 0 deletions .github/actions/cache-solana-platform-tools/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Required input env vars
# - SOLANAVERS

name: "Cache solana platform tools"
description: "caches initial download of solana platform tools"

runs:
using: "composite"
steps:
- name: Solana Platform Tools Cache
uses: actions/cache@v4
with:
# 500MB thats downloaded on first invoke
# of cargo-build-sbf is the toolchain
# that goes into $HOME/.cache/solana
# This will be fixed by
# https://github.com/Ellipsis-Labs/solana-verifiable-build/pull/202
# Make sure vars match those in restore-cache-solana-platform-tools/action.yaml
path: ~/.cache/solana
key: ${{ runner.os }}-solana-platform-tools-${{ env.SOLANAVERS }}
restore-keys: |
${{ runner.os }}-solana-platform-tools-
20 changes: 20 additions & 0 deletions .github/actions/cache-wasm-build/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Required input env vars
# - RUSTVERS

name: "Cache wasm Build"
description: "caches wasm (ts) rust build"

runs:
using: "composite"
steps:
- name: wasm Cache
uses: actions/cache@v4
with:
path: |
target/CACHEDIR.TAG
target/release
target/.rustc_info.json
target/wasm32-unknown-unknown
key: ${{ runner.os }}-wasmbuild-${{ env.RUSTVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-wasmbuild-
12 changes: 12 additions & 0 deletions .github/actions/download-sbf-progs/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Download SBF Programs Artifact"

runs:
using: "composite"
steps:
- name: SBF Programs Artifact Download
uses: actions/download-artifact@v4
with:
# Make sure vars match those in upload-sbf-progs/action.yaml
name: sbfprogs
path: |
target/deploy
12 changes: 12 additions & 0 deletions .github/actions/download-wasm-pkg/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Download wasm Package Artifact"

runs:
using: "composite"
steps:
- name: wasm Package Artifact Download
uses: actions/download-artifact@v4
with:
# Make sure vars match those in upload-wasm-pkg/action.yaml
name: wasmpkg
path: |
ts/sdk/pkg
28 changes: 28 additions & 0 deletions .github/actions/restore-cache-cargo-build-sbf/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Required input env vars
# - SOLANAVERS

name: "Restore cargo-build-sbf cache"
description: "restores cached cargo-build-sbf output in target folder"
inputs:
fail-on-cache-miss:
description: "fwd to actions/cache/restore"
required: false
default: false

runs:
using: "composite"
steps:
- name: cargo-build-sbf Cache Restore
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: ${{ inputs.fail-on-cache-miss }}
# Make sure vars match those in cache-cargo-build-sbf/action.yaml
path: |
target/CACHEDIR.TAG
target/deploy
target/release
target/.rustc_info.json
target/sbpf-solana-solana
key: ${{ runner.os }}-sbf-${{ env.SOLANAVERS }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sbf-
15 changes: 15 additions & 0 deletions .github/actions/restore-cache-cargo-fetch/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Restore Cache cargo fetch"
description: "restores cache from cache cargo fetch action"

runs:
using: "composite"
steps:
- name: cargo fetch Cache Restore
uses: actions/cache/restore@v4
with:
# Make sure vars match those in cache-cargo-fetch/action.yaml
path: |
${{ env.CARGO_HOME }}
key: ${{ runner.os }}-rustfetch-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rustfetch-
17 changes: 17 additions & 0 deletions .github/actions/restore-cache-solana-platform-tools/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Required input env vars
# - SOLANAVERS

name: "Restore Cache solana platform tools"
description: "restores cache of solana platform tools"

runs:
using: "composite"
steps:
- name: Solana Platform Tools Cache Restore
uses: actions/cache/restore@v4
with:
# Make sure vars match those in cache-solana-platform-tools/action.yaml
path: ~/.cache/solana
key: ${{ runner.os }}-solana-platform-tools-${{ env.SOLANAVERS }}
restore-keys: |
${{ runner.os }}-solana-platform-tools-
12 changes: 12 additions & 0 deletions .github/actions/upload-sbf-progs/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Upload SBF Programs Artifact"

runs:
using: "composite"
steps:
- name: SBF Programs Artifact Upload
uses: actions/upload-artifact@v4
with:
# Make sure vars match those in download-sbf-progs/action.yaml
name: sbfprogs
path: |
target/deploy
14 changes: 14 additions & 0 deletions .github/actions/upload-wasm-pkg/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NB: the uploaded package is not read for use since postbuild has not been ran on it

name: "Upload wasm Package Artifact"

runs:
using: "composite"
steps:
- name: wasm Package Artifact Upload
uses: actions/upload-artifact@v4
with:
# Make sure vars match those in download-wasm-pkg/action.yaml
name: wasmpkg
path: |
ts/sdk/pkg
Loading