Skip to content

Commit

Permalink
ci: fix somking test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
liya2017 authored and liya2017 committed Nov 30, 2021
1 parent 25afaac commit 318034d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/smoking_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
fi
tar -zxf /tmp/ckb_v0.35.0_linux.tar.gz -C /tmp
cp /tmp/ckb_*/ckb ${{ github.workspace }}/ckb
rm -rf ckb_*
- name: Update ExecStart&StandardOutput
run: |
sed -i "s#ExecStart=.*#ExecStart=${{github.workspace}}/ckb run -C ${{github.workspace}}#g" ${{ github.workspace }}/devtools/smoking_test/ckb.service
Expand All @@ -44,7 +45,7 @@ jobs:
sudo rm /etc/systemd/system/ckb.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
rm ${{ github.workspace }}/ckb
rm ${{ github.workspace }}/ckb/ckb
- name: Download target ckb release pkg and copy binary to github workspace
if: |
(github.event_name == 'workflow_dispatch' && github.event.inputs.CKB_linux_release_package != '')
Expand All @@ -58,6 +59,7 @@ jobs:
curl -L ${{ github.event.inputs.CKB_linux_release_package }} -o /tmp/ckb.tar.gz
tar -zxf /tmp/ckb.tar.gz -C /tmp
fi
cp /tmp/ckb_*/ckb ${{ github.workspace }}/ckb
- name: Build CKB binary
if: |
(github.event_name == 'workflow_dispatch' && github.event.inputs.CKB_linux_release_package == '')
Expand Down

0 comments on commit 318034d

Please sign in to comment.