Skip to content

Commit

Permalink
Add custom action for timechain dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 committed Jun 29, 2024
1 parent ffb4502 commit 95c0e8f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/actions/rust-init/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Init Rust"
description: "Install Rust version with Timechain dependencies"

inputs: {}

runs:
using: "composite"
steps:
- name: Install dependencies
shell: bash
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Install rust toolchain
shell: bash
run : rustup show
6 changes: 2 additions & 4 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Initialize Rust
uses: ./.github/actions/rust-init
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust toolchain
run : rustup show
- name: Build docs
run: cargo doc --no-deps --document-private-items --workspace
- name: Upload docs
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:
env:
DOCS_HIDEOUT: an8ohgahmoot6ro8ieReib9micau0Oow
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Initialize Rust
uses: ./.github/actions/rust-init
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust toolchain
run: rustup show
- name: Build docs
run: cargo doc --no-deps --document-private-items --workspace --target-dir target/docs/$DOCS_HIDEOUT/
- name: Copy configurations
Expand Down

0 comments on commit 95c0e8f

Please sign in to comment.