Skip to content
Open
Changes from all 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
59 changes: 36 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ env:
LEDGER_APP_VERSION: "3.0.7"
ROLE: arn:aws:iam::375643557360:role/github-runners-ci-shared
SCCACHE_ERROR_LOG: /tmp/sccache_log.txt
DOMAIN: namada

jobs:
changelog:
Expand All @@ -58,7 +59,7 @@ jobs:
rust-docs:
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
timeout-minutes: 20

steps:
Expand All @@ -69,14 +70,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand All @@ -92,7 +94,7 @@ jobs:
lints:
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
runs-on: [self-hosted, 8vcpu-16ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 8vcpu-16ram-x86-namada]
timeout-minutes: 15

steps:
Expand All @@ -103,14 +105,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand All @@ -127,7 +130,7 @@ jobs:

build-wasm:
timeout-minutes: 10
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
strategy:
Expand All @@ -154,14 +157,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Build ${{ matrix.make.name }}
run: make ${{ matrix.make.command }}
- name: Upload ${{ matrix.make.name }} artifacts
Expand All @@ -177,7 +181,7 @@ jobs:
timeout-minutes: 30
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
needs: [build-wasm]

steps:
Expand All @@ -188,14 +192,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Download wasm artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -221,7 +226,7 @@ jobs:
run: cargo cache --autoclean-expensive

test-unit:
runs-on: [self-hosted, 8vcpu-16ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 8vcpu-16ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
timeout-minutes: 30
Expand All @@ -235,14 +240,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand Down Expand Up @@ -274,7 +280,7 @@ jobs:
run: sccache --stop-server || true

check-packages:
runs-on: [self-hosted, 8vcpu-16ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 8vcpu-16ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
timeout-minutes: 15
Expand All @@ -287,14 +293,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand All @@ -310,7 +317,7 @@ jobs:
run: sccache --stop-server || true

test-integration:
runs-on: [self-hosted, 16vcpu-32ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 16vcpu-32ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
timeout-minutes: 120
Expand All @@ -324,14 +331,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand Down Expand Up @@ -363,7 +371,7 @@ jobs:
run: sccache --stop-server || true

check-benchmarks:
runs-on: [self-hosted, 16vcpu-32ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 16vcpu-32ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
if: github.event.pull_request.draft == false || contains(github.head_ref, 'mergify/merge-queue') || contains(github.ref_name, 'mergify/merge-queue')
Expand All @@ -378,14 +386,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand All @@ -411,7 +420,7 @@ jobs:
run: sccache --stop-server || true

build-binaries:
runs-on: [self-hosted, 16vcpu-32ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 16vcpu-32ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
timeout-minutes: 25
Expand All @@ -424,14 +433,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand Down Expand Up @@ -462,7 +472,7 @@ jobs:
run: sccache --stop-server || true

test-e2e:
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
if: github.event.pull_request.draft == false || contains(github.head_ref, 'mergify/merge-queue') || contains(github.ref_name, 'mergify/merge-queue')
Expand All @@ -486,14 +496,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand Down Expand Up @@ -633,7 +644,7 @@ jobs:
make cpp_test

test-e2e-with-device-automation:
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
if: github.event.pull_request.draft == false || contains(github.head_ref, 'mergify/merge-queue') || contains(github.ref_name, 'mergify/merge-queue')
Expand All @@ -648,14 +659,15 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /root/.cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
key: /cache/${{ env.DOMAIN }}/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}-${{ env.NIGHTLY }}
- name: Start sccache server
id: sccache
run: sccache --start-server
Expand Down Expand Up @@ -727,7 +739,7 @@ jobs:
run: sccache --stop-server || true

check-sdk-licenses:
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
runs-on: [self-hosted, 4vcpu-8ram-x86-namada]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-v2.3.0
timeout-minutes: 5
Expand All @@ -740,6 +752,7 @@ jobs:
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.ROLE }}
role-duration-seconds: 7200
- uses: taiki-e/install-action@v2
with:
tool: cargo-binstall
Expand Down
Loading