Skip to content

Commit

Permalink
Fix cloud-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog committed May 23, 2024
1 parent 5b5700c commit 978e16d
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/cloud-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
AZURE_CORE_OUTPUT: none

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v3
with:
token: ${{ github.token }}
Expand Down Expand Up @@ -86,28 +91,11 @@ jobs:
- name: setup cloud
run: |
_system=$(
poetry run milabench cloud \
--setup \
--run-on ${{ matrix.run_on }}
)
{ read _hash ; }< <(
echo -n "$_system" | while read l
do
if [[ "$l" == "# hash::>"* ]]
then
echo -n "${l#*::>}"
fi
done
echo
)
if [[ -z "${_hash}" ]]
then
>&2 echo "Failed to fetch system config hash"
exit 1
fi
echo -n "$_system" >$MILABENCH_SYSTEM.$_hash
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.$_hash" >>$GITHUB_ENV
--run-on ${{ matrix.run_on }} \
--system "$MILABENCH_SYSTEM" >$MILABENCH_SYSTEM.${{ matrix.run_on }}
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.${{ matrix.run_on }}" >>$GITHUB_ENV
- name: install benchmarks
run: |
Expand Down

0 comments on commit 978e16d

Please sign in to comment.