Merge pull request #89 from propeller-heads/lp/uniswap-v2-be-encoding #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Substreams CD | |
| on: | |
| push: | |
| tags: | |
| - "ethereum-*" | |
| workflow_dispatch: | |
| inputs: | |
| package: | |
| required: true | |
| description: "Package to build" | |
| config_file: | |
| required: false | |
| description: "Path to the substreams configuration file" | |
| default: "substreams.yaml" | |
| jobs: | |
| Release: | |
| name: Release ${{ inputs.package }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Setup toolchain | |
| uses: dtolnay/rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| targets: wasm32-unknown-unknown | |
| - name: Setup Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Install Substreams CLI | |
| run: | | |
| # Use correct binary for your platform | |
| LINK=$(curl -s https://api.github.com/repos/streamingfast/substreams/releases/latest | awk "/download.url.*linux_$(uname -m)/ {print \$2}" | sed 's/"//g') | |
| curl -L "$LINK" | tar zxf - -C /usr/local/bin | |
| chmod +x /usr/local/bin/substreams | |
| substreams --version | |
| - name: Run checks | |
| run: | | |
| cd substreams | |
| ./release.sh ${{ inputs.package }} ${{ inputs.config_file }} |