Skip to content

Commit

Permalink
Merge branch 'fraccaman/ci-improvements-3'
Browse files Browse the repository at this point in the history
* fraccaman/ci-improvements-3:
  ci: use custom runner for docs step
  • Loading branch information
Fraccaman committed Aug 23, 2024
2 parents 27cde3b + ad97fb8 commit 2256e38
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,44 @@ jobs:
SHA: ${{ github.event.pull_request.head.sha }}

rust-docs:
runs-on: [ubuntu-latest]
container:
image: ghcr.io/heliaxdev/namada-ci:namada-main
runs-on: [self-hosted, 4vcpu-8ram-ubuntu22-namada-x86]
timeout-minutes: 20
env:
RUSTC_WRAPPER: ""

steps:
- name: Checkout repo
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request_target' }}
- name: Checkout PR
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
if: ${{ github.event_name == 'pull_request_target' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
- name: Cache cargo
id: cache
uses: runs-on/cache@v4
env:
RUNS_ON_S3_BUCKET_CACHE: ${{ env.CACHE_BUCKET }}
with:
path: /usr/local/cargo
key: /cache/${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
- name: Start sccache server
id: sccache
run: sccache --start-server
- name: Build docs
run: make build-doc
- name: Clean cargo cache
if: steps.cache.outputs.cache-hit != 'true'
run: cargo cache --autoclean-expensive
- name: Stop sccache
if: always() && steps.sccache.conclusion == 'success'
run: sccache --stop-server || true

lints:
container:
Expand Down

0 comments on commit 2256e38

Please sign in to comment.