Skip to content

fix: github actions #21

fix: github actions

fix: github actions #21

Workflow file for this run

name: Build yellowstone-vixen crates
# This workflow uses github runners.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# This may be adjusted to whatever suits best your runners config.
# Current config will build on manual trigger or pull-request (each push)
on:
# pull_request can be removed, to save minutes on github runners
pull_request:
workflow_dispatch:
push:
branches:
- 'main'
env:
CARGO_TERM_COLOR: always
jobs:
build:
# This can be also be runned on self-hosted github runners
runs-on: ubuntu-22.04
steps:
- name: checkout repo
uses: actions/checkout@v4
# This step can be omited, to save storage space on the organization account
# Build process will take longer
- name: Cache Build Dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
yellowstone-vixen/target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}-0001
- name: Install Latest Protoc
run: |
PROTOC_VERSION=26.1
ARCH=x86_64
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-${ARCH}.zip
sudo apt-get install -y unzip protobuf-compiler libprotobuf-dev
unzip protoc-${PROTOC_VERSION}-linux-${ARCH}.zip -d $HOME/.local
echo "$HOME/.local/bin" >> $GITHUB_PATH
protoc --version
# Build yellowstone-vixen
- name: build yellowstone-vixen
run: cargo build --verbose --release