Merge pull request #81 from gizatechxyz/debug-reduce-sum #178
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: Tests | |
on: | |
push: | |
branches: | |
- "**" | |
env: | |
ARTIFACT_RELEASE_ARCHIVE_LINK: https://api.github.com/repos/starkware-libs/cairo/actions/artifacts/679726320/zip | |
ARTIFACT_RELEASE_ARCHIVE_NAME: cairo.zip | |
RELEASE_ARCHIVE_NAME: x86_64-unknown-linux-musl.tar.gz | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install cairo compiler | |
run: | | |
curl -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -L -o $ARTIFACT_RELEASE_ARCHIVE_NAME $ARTIFACT_RELEASE_ARCHIVE_LINK | |
unzip $ARTIFACT_RELEASE_ARCHIVE_NAME | |
tar -xvf $RELEASE_ARCHIVE_NAME | |
- name: Check Cairo compiler version and add to path | |
run: | | |
$(pwd)/cairo/bin/cairo-compile --version | |
echo "$(pwd)/cairo/bin" >> $GITHUB_PATH | |
- name: Test the code | |
run: cairo-test . |