This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
Merge pull request #11 from starknet-edu/gyan0890-patch-1 #30
This file contains 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: Run StarkNet compilation | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile all the contracts | |
run: > | |
for cairo_file in $(find contracts/ -type f -name "*.cairo"); do | |
docker run --mount type=bind,source=$(pwd)/contracts/,target=/contracts/ shardlabs/cairo-cli:latest starknet-compile $cairo_file >/dev/null; | |
done |