Skip to content

Commit

Permalink
BLOCK-2590 - Uncomment self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sikachyna committed Nov 14, 2024
1 parent cf17287 commit fe91fb2
Showing 1 changed file with 32 additions and 33 deletions.
65 changes: 32 additions & 33 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,46 @@ concurrency:
cancel-in-progress: true

jobs:
start-runner:
name: Start Runner
runs-on: ubuntu-latest
steps:
- name: Get Token
id: application_token
uses: peter-murray/workflow-application-token-action@v2
with:
application_id: ${{ secrets.APPLICATION_ID }}
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}

- name: Trigger start-runner job
uses: convictional/[email protected]
with:
owner: ultraio
repo: blockchain-manager
github_token: ${{ steps.application_token.outputs.token }}
workflow_file_name: start-runner.yml
job-cleanup:
needs: start-runner
name: "Cleanup"
timeout-minutes: 5
runs-on: "self-hosted"
steps:
- name: "Cleanup Previous Run"
run: |
sudo rm -rf ./* || true
sudo rm -rf ./.??* || true
sudo rm -rf $GITHUB_WORKSPACE || true
mkdir $GITHUB_WORKSPACE
# start-runner:
# name: Start Runner
# runs-on: ubuntu-latest
# steps:
# - name: Get Token
# id: application_token
# uses: peter-murray/workflow-application-token-action@v2
# with:
# application_id: ${{ secrets.APPLICATION_ID }}
# application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }}

# - name: Trigger start-runner job
# uses: convictional/[email protected]
# with:
# owner: ultraio
# repo: blockchain-manager
# github_token: ${{ steps.application_token.outputs.token }}
# workflow_file_name: start-runner.yml
# job-cleanup:
# needs: start-runner
# name: "Cleanup"
# timeout-minutes: 5
# runs-on: "self-hosted"
# steps:
# - name: "Cleanup Previous Run"
# run: |
# sudo rm -rf ./* || true
# sudo rm -rf ./.??* || true
# sudo rm -rf $GITHUB_WORKSPACE || true
# mkdir $GITHUB_WORKSPACE
build-contracts:
name: "Build contracts and run tests"
timeout-minutes: 10
runs-on: "self-hosted"
runs-on: ubuntu-latest
container:
# This repository can be found / pushed to in: ultraio/eosio-docker-starter
image: quay.io/ultra.io/eosio-docker-starter:5.0.0
options: >-
--init
--cpus 8
--cpus 2
permissions:
contents: 'read'
id-token: 'write'
Expand All @@ -64,7 +64,6 @@ jobs:

- name: "Set env vars"
run: |
echo "JOBS=8" >> $GITHUB_ENV
echo "ULTRA_PATH=/__w/eos-evm-contract/eos-evm-contract/ultra/" >> $GITHUB_ENV
# Update dependencies
Expand Down

0 comments on commit fe91fb2

Please sign in to comment.