Skip to content

Commit

Permalink
Fix smoke tests for mac (#1835)
Browse files Browse the repository at this point in the history
<!-- Reference any GitHub issues resolved by this PR -->

## Introduced changes

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

- Fixes smoke tets for macos (UDC not in path)

## 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 7fa40c8 commit a3391dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ jobs:
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
curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh
echo "UDC_PATH=${HOME}/.local/bin/universal-sierra-compiler" >> $GITHUB_ENV
fi
- name: Smoke test
Expand All @@ -209,11 +210,11 @@ jobs:
BINARY_PATH="${BINARY_PATH%.tar.gz}"
BINARY_PATH="${BINARY_PATH%.zip}"
BINARY_PATH="${BINARY_PATH#artifacts/}"
export UNIVERSAL_SIERRA_COMPILER="${{ env.UDC_PATH }}"
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 a3391dc

Please sign in to comment.