QuickMPC Benchmark #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QuickMPC Benchmark | |
on: | |
workflow_run: | |
workflows: ['Push CC, MC, BTS Image'] | |
types: | |
- completed | |
jobs: | |
benchmark-test: | |
name: Benchmark test | |
runs-on: ubuntu-latest | |
# releaseタグがtriggerの時のみ走らせる | |
if: ${{ !startsWith(github.event.workflow_run.head_branch, 'main') }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: decode secret key | |
run: echo ${{ secrets.RUNNER_SECRET_KEY }} | base64 -d > secret && chmod 600 secret | |
- name: mkdir ${{ github.run_number }} | |
run: ssh -oStrictHostKeyChecking=no ubuntu@${{ secrets.RUNNER_IP }} -i secret "mkdir ${{ github.run_number }}" | |
- name: clone QuickMPC | |
run: ssh ubuntu@${{ secrets.RUNNER_IP }} -i secret "cd ${{ github.run_number }} && git clone https://github.com/acompany-develop/QuickMPC" | |
- name: run benchmark | |
run: ssh ubuntu@${{ secrets.RUNNER_IP }} -i secret 'nohup bash -c "cd ${{ github.run_number }}/QuickMPC/benchmark_src && chmod +x benchmark_runner.sh && ./benchmark_runner.sh ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} ${{ secrets.GCP_PROJECT_ID }} ${{ github.run_number }} ${{ secrets.SLACK_CHANNEL_ID }} ${{ secrets.SLACK_API_TOKEN }} && sudo rm -r ~/${{ github.run_number }}" &> /home/ubuntu/log/runner-${{ github.run_number }}.log &' |