Adding RiseIn Community Repos (#2373) #261
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: Build and Fanout | |
| on: | |
| push: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate hash of core files | |
| id: hash | |
| run: | | |
| echo "files_hash=$(find . -maxdepth 2 -name "run.sh" -o -path "./src/*" \( -name "*.zig" -o -name "*.sh" \) | sort | xargs sha1sum | sha1sum | cut -d ' ' -f1)" >> $GITHUB_OUTPUT | |
| - name: Cache build artifacts | |
| id: cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: zig-out/bin/ce | |
| key: ${{ runner.os }}-build-${{ steps.hash.outputs.files_hash }} | |
| restore-keys: | | |
| ${{ runner.os }}-build- | |
| - name: Build if cache miss | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| ./run.sh build | |
| ./run.sh test | |
| - name: Validate Migrations from Genesis | |
| run: | | |
| ./zig-out/bin/ce validate | |
| - name: Repository Dispatch | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| repository: electric-capital/taxonomy-viewer | |
| event-type: master-merge | |
| client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' |