Skip to content

Commit

Permalink
platform-tools-solana: Add action for building Solana Platform toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Nov 1, 2023
1 parent c605f7c commit 14f8fd3
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/platform-tools-solana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,45 @@ jobs:
sudo apt -y install clang-${{ env.LLVM_VERSION }} cmake lld-${{ env.LLVM_VERSION }} ninja-build
echo /usr/lib/llvm-${{ env.LLVM_VERSION }}/bin >> $GITHUB_PATH
- name: Install dependencies
if: startsWith(matrix.os, 'macos')
run: |
brew install cmake ninja
- name: Checkout code
uses: actions/checkout@v2
with:
path: binaries

- name: Checkout Rust code
uses: actions/checkout@v2
with:
path: rust
repository: solana-labs/rust
ref: solana-tools-${{ steps.extract_version.outputs.version }}

- name: Build Rust
run: |
cd rust
cp ../binaries/platform-tools-solana/config.toml .
./x.py build --stage 1 --target ${{ matrix.target }},sbf-solana-solana
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

- name: Checkout Cargo code
uses: actions/checkout@v2
with:
path: cargo
repository: solana-labs/caego
ref: solana-tools-${{ steps.extract_version.outputs.version }}

- name: Build Cargo
env:
OPENSSL_STATIC: 1
run: |
cd cargo
cargo build --release
- name: Copy Rust build products
Expand Down
Loading

0 comments on commit 14f8fd3

Please sign in to comment.