Skip to content

Commit

Permalink
Replace schedule with release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sergcpp committed Oct 18, 2024
1 parent f55f553 commit 605cd11
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ runs:
cd Ray
git remote set-url origin $REPO_URL
git fetch --all
git checkout -f $GITHUB_REF_NAME
git reset --hard origin/$GITHUB_REF_NAME
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
GITHUB_SHA=${{ github.event.pull_request.head.sha }}
fi
git checkout -f $GITHUB_SHA
#git reset --hard origin/$GITHUB_REF_NAME
git clean -fdx
git fetch --tags
else
Expand Down
11 changes: 10 additions & 1 deletion .github/actions/test-sde/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'Test'
inputs:
bin-dir:
required: true
out-dir:
required: true
test-args:
required: true
sde-args:
Expand All @@ -13,8 +15,15 @@ runs:
with:
name: ${{ inputs.bin-dir }}
path: ${{ inputs.bin-dir }}/
- run: |
WORK_DIR=`pwd`
mkdir $WORK_DIR/${{ inputs.out-dir }}
cd ../../builds/Ray/tests
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
shell: bash
- run: |
WORK_DIR=`pwd`
cd ../../builds/Ray/tests
sde ${{ inputs.sde-args }} -- $WORK_DIR/${{ inputs.bin-dir }}/test_Ray ${{ inputs.test-args }}
cp test_data/errors.txt $WORK_DIR/${{ inputs.out-dir }} || true
if: always()
shell: bash
6 changes: 6 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ runs:
cd ../../builds/Ray/tests
$WORK_DIR/${{ inputs.bin-dir }}/${{ inputs.bin-name }} ${{ inputs.test-args }} | tee $WORK_DIR/${{ inputs.out-dir }}/test_Ray_output.txt
shell: bash
- run: |
WORK_DIR=`pwd`
cd ../../builds/Ray/tests
cp test_data/errors.txt $WORK_DIR/${{ inputs.out-dir }} || true
if: always()
shell: bash
Loading

0 comments on commit 605cd11

Please sign in to comment.