Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update runners for each workflow job #1134

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-hub-parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
hadolint:
runs-on: ubuntu-20.04
runs-on: [self-hosted, zeitgeist-runner]
name: "Hadolint"
steps:
- uses: actions/checkout@v3
Expand All @@ -19,7 +19,7 @@ jobs:
publish:
needs: hadolint
name: Publish
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
steps:
- uses: actions/checkout@v3
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
hadolint:
runs-on: ubuntu-20.04
runs-on: [self-hosted, zeitgeist-runner]
name: "Hadolint"
steps:
- uses: actions/checkout@v3
Expand All @@ -19,7 +19,7 @@ jobs:
publish:
needs: hadolint
name: Publish
runs-on: ubuntu-latest
runs-on: zeitgeist-runner
samuelarogbonlo marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -43,7 +43,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -68,7 +68,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
strategy:
matrix:
scripts: [
Expand All @@ -87,7 +87,9 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Checks
run: ./scripts/tests/${{ matrix.scripts }}.sh
run: |
source $HOME/.cargo/env
./scripts/tests/${{ matrix.scripts }}.sh

benchmark:
name: Quick check benchmarks
Expand All @@ -96,15 +98,17 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install build tools
run: ./scripts/init.sh

- run: ./scripts/benchmarks/quick_check.sh
- run: |
sea212 marked this conversation as resolved.
Show resolved Hide resolved
source $HOME/.cargo/env
./scripts/benchmarks/quick_check.sh

test_standalone:
name: Test standalone build
Expand All @@ -113,7 +117,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -148,7 +152,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -174,7 +178,9 @@ jobs:
uses: Swatinem/rust-cache@v1

- name: Tests
run: ./scripts/tests/test_parachain.sh
run: |
source $HOME/.cargo/env
./scripts/tests/test_parachain.sh

fuzz:
name: Fuzz
Expand All @@ -183,7 +189,7 @@ jobs:
(contains(github.event.pull_request.labels.*.name, 's:review-needed') ||
contains(github.event.pull_request.labels.*.name, 's:accepted')) ||
github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: [ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ echo "*** Initializing build environment"

if [ "$1" == "nosudo" ]; then
apt-get update && \
apt-get install -y build-essential clang curl libssl-dev protobuf-compiler
apt-get install -y build-essential clang curl libssl-dev protobuf-compiler gcc-multilib
else
sudo apt-get update && \
sudo apt-get install -y build-essential clang curl libssl-dev protobuf-compiler
sudo apt-get install -y build-essential clang curl libssl-dev protobuf-compiler gcc-multilib
fi

curl https://sh.rustup.rs -sSf | sh -s -- -y && \
. "$HOME/.cargo/env" && \
rustup show
rustup show
Loading