Skip to content

Commit

Permalink
upload blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Jul 12, 2024
1 parent f3696c0 commit c0e0f6d
Show file tree
Hide file tree
Showing 14 changed files with 1,623 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/substreams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Substreams
on:
release:
types: [ published ]

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Install substreams
uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/streamingfast/substreams/releases/download/v1.1.14/substreams_linux_x86_64.tar.gz'
name: 'substreams'
version: '1.1.14'

- run: make
- uses: softprops/action-gh-release@v1
with:
files: |
*.spkg
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Run cargo check
run: cargo check

- name: Run cargo test
run: cargo test
Loading

0 comments on commit c0e0f6d

Please sign in to comment.