Skip to content

Commit

Permalink
ci(perf): upgrade to using GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxpicca-Li committed Oct 28, 2024
1 parent 7bd8068 commit 39ae937
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ jobs:
- name: Determine if this is the biweekly run
id: determine_run
run: |
[ $(( $(date +'%V') % 2 )) -eq 0 ] && echo "::set-output name=run_biweekly::true" || echo "::set-output name=run_biweekly::false"
[ $(( $(date +'%V') % 2 )) -eq 0 ] && echo "run_biweekly::true" >> $GITHUB_OUTPUT || echo "run_biweekly::false" >> $GITHUB_OUTPUT
- name: Set test commit
id: set_test_commit
if: steps.determine_run.outputs.run_biweekly == 'true'
run: |
if [ "${{ github.event.inputs.test_commit }}" = "" ]; then
echo "Using latest commit."
echo "::set-output name=commit_sha::${{ github.sha }}"
echo "commit_sha::${{ github.sha }}" >> $GITHUB_OUTPUT
else
echo "Using specified commit: ${{ github.event.inputs.test_commit }}"
echo "::set-output name=commit_sha::${{ github.event.inputs.test_commit }}"
echo "commit_sha::${{ github.event.inputs.test_commit }}" >> $GITHUB_OUTPUT
fi
- name: Checkout code at specific commit
Expand Down Expand Up @@ -69,14 +69,17 @@ jobs:
mkdir -p $NOOP_HOME/build
echo "hello world" > $NOOP_HOME/build/test.log
# - name: Clean Up
# if: steps.determine_run.outputs.run_biweekly == 'true'
# run: |
# python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean
# - name: Build EMU with DRAMsim3
# if: steps.determine_run.outputs.run_biweekly == 'true'
# run: |
# if [ -e "$SPEC_DIR/emu" ]; then
# mkdir -p $NOOP_HOME/build
# cp $SPEC_DIR/emu $NOOP_HOME/build/emu
# else
# python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --clean
# python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --build \
# --dramsim3 /nfs/home/share/ci-workloads/DRAMsim3 \
# --with-dramsim3 --threads 16 \
Expand Down

0 comments on commit 39ae937

Please sign in to comment.