Skip to content

Commit

Permalink
Add udc install to smoke tests (#1833)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

Tested here
https://github.com/foundry-rs/starknet-foundry/actions/runs/8173078572

## Introduced changes

<!-- A brief description of the changes -->

- Add UDC installation to smoke tests

## Checklist

<!-- Make sure all of these are complete -->

- [X] Linked relevant issue
- [X] Updated relevant documentation
- [X] Added relevant tests
- [X] Performed self-review of the code
- [X] Added changes to `CHANGELOG.md`
  • Loading branch information
THenry14 authored Mar 6, 2024
1 parent 5756daf commit 7fa40c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ jobs:
tar xzvf ${{ env.BINARY_PATH }}
fi
- name: Install universal-sierra-compiler
shell: bash
run: |
if [[ ${{ matrix.target }} == *windows* ]]; then
curl -L -o udc.zip https://github.com/software-mansion/universal-sierra-compiler/releases/download/v2.0.0/universal-sierra-compiler-v2.0.0-x86_64-pc-windows-msvc.zip
unzip udc.zip
echo "UDC_PATH=$(pwd)/universal-sierra-compiler-v2.0.0-x86_64-pc-windows-msvc/bin/universal-sierra-compiler.exe" >> $GITHUB_ENV
else
curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | bash
fi
- name: Smoke test
shell: bash
env:
Expand All @@ -202,6 +213,7 @@ jobs:
if [[ ${{ matrix.target }} == *windows* ]]; then
SNFORGE_PATH=$(readlink -f $BINARY_PATH/bin/snforge.exe)
SNCAST_PATH=$(readlink -f $BINARY_PATH/bin/sncast.exe)
export UNIVERSAL_SIERRA_COMPILER="${{ env.UDC_PATH }}"
else
SNFORGE_PATH=$(readlink -f $BINARY_PATH/bin/snforge)
SNCAST_PATH=$(readlink -f $BINARY_PATH/bin/sncast)
Expand Down

0 comments on commit 7fa40c8

Please sign in to comment.