Skip to content

Commit

Permalink
ci: use self-hosted runner in scheduled task (#969)
Browse files Browse the repository at this point in the history
## Description

The PR changes the github runner to the self-hosted runner.
  • Loading branch information
aleksuss authored Oct 18, 2024
1 parent 59e63d1 commit b0c4356
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Scheduled checks
jobs:
tests:
name: Run tests
runs-on: github-hosted-heavy-runner
runs-on: k8s-infrastructure-dind
strategy:
fail-fast: false
matrix:
Expand All @@ -15,8 +15,19 @@ jobs:
- name: Potential broken submodules fix
run: |
git checkout -f $(git -c user.name=x -c user.email=x@x commit-tree $(git hash-object -t tree /dev/null) < /dev/null) || :
- name: Install dependencies
run: |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y yarn build-essential pkg-config libclang-dev libssl-dev
- name: Clone the repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
toolchain: stable
override: false
- name: Cargo Cache
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-neard-sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TAG=`curl -s https://rpc.${NETWORK}.near.org/status | jq -r .version.build`

git clone https://github.com/near/nearcore -b $TAG
cd nearcore
make sandbox
make sandbox-release
mv $(find target -name neard-sandbox) ../
cd ..
rm -rf nearcore
Expand Down

0 comments on commit b0c4356

Please sign in to comment.