|
| 1 | +# TODO: re-enable for 0.4 official |
| 2 | + |
| 3 | +# name: Docs CI |
| 4 | + |
| 5 | +# # based on https://docs.wavs.xyz/ & this repos README.md |
| 6 | + |
| 7 | +# on: |
| 8 | +# push: |
| 9 | +# branches: |
| 10 | +# - main |
| 11 | +# pull_request: |
| 12 | +# workflow_dispatch: |
| 13 | + |
| 14 | +# # Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed. |
| 15 | +# concurrency: |
| 16 | +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 17 | +# cancel-in-progress: true |
| 18 | + |
| 19 | +# env: |
| 20 | +# GO_VERSION: 1.23.7 |
| 21 | + |
| 22 | +# jobs: |
| 23 | +# run: |
| 24 | +# runs-on: ubuntu-latest |
| 25 | +# env: |
| 26 | +# DEBUGGING: true |
| 27 | + |
| 28 | +# steps: |
| 29 | +# - name: Checkout repository |
| 30 | +# uses: actions/checkout@v4 |
| 31 | + |
| 32 | +# - name: Install Ubuntu packages |
| 33 | +# run: sudo apt-get update && sudo apt-get install bash make jq |
| 34 | + |
| 35 | +# - uses: actions/setup-node@v4 |
| 36 | +# name: Install Node.js |
| 37 | +# with: |
| 38 | +# node-version: 21 |
| 39 | + |
| 40 | +# - name: Set up Go ${{ env.GO_VERSION }} |
| 41 | +# uses: actions/setup-go@v4 |
| 42 | +# with: |
| 43 | +# go-version: ${{ env.GO_VERSION }} |
| 44 | + |
| 45 | +# - name: Install Rust |
| 46 | +# uses: actions-rs/toolchain@v1 |
| 47 | +# with: |
| 48 | +# profile: minimal |
| 49 | +# toolchain: stable |
| 50 | +# override: true |
| 51 | + |
| 52 | +# - name: Cache Rust target |
| 53 | +# uses: actions/cache@v3 |
| 54 | +# with: |
| 55 | +# path: | |
| 56 | +# ~/.rustup/toolchains |
| 57 | +# ~/.cargo/bin/ |
| 58 | +# ~/.cargo/registry/index/ |
| 59 | +# ~/.cargo/registry/cache/ |
| 60 | +# ~/.cargo/git/db/ |
| 61 | +# target/ |
| 62 | +# key: ${{ runner.os }}-rust-wasm32-${{ hashFiles('**/Cargo.lock') }} |
| 63 | +# restore-keys: | |
| 64 | +# ${{ runner.os }}-rust-wasm32- |
| 65 | + |
| 66 | +# - uses: cargo-bins/cargo-binstall@main |
| 67 | +# name: Install cargo-binstall |
| 68 | + |
| 69 | +# - name: Install Foundry |
| 70 | +# uses: foundry-rs/foundry-toolchain@v1 |
| 71 | +# with: |
| 72 | +# version: stable |
| 73 | + |
| 74 | +# - name: Install rust wasm32-wasip2 |
| 75 | +# run: rustup target add wasm32-wasip2 |
| 76 | + |
| 77 | +# - name: Check if wkg exists |
| 78 | +# id: check-wkg |
| 79 | +# run: | |
| 80 | +# if [ ! -f ~/.cargo/bin/wkg ]; then |
| 81 | +# echo "wkg_exists=false" >> $GITHUB_OUTPUT |
| 82 | +# else |
| 83 | +# echo "wkg_exists=true" >> $GITHUB_OUTPUT |
| 84 | +# fi |
| 85 | + |
| 86 | +# # limited due to low rate limits |
| 87 | +# - name: Install wasi components |
| 88 | +# if: steps.check-wkg.outputs.wkg_exists == 'false' |
| 89 | +# run: cargo binstall cargo-component warg-cli wkg --locked --no-confirm --force |
| 90 | + |
| 91 | +# - name: Configure wkg registry |
| 92 | +# run: wkg config --default-registry wa.dev |
| 93 | + |
| 94 | +# - name: Install docci readme runner |
| 95 | +# run: | |
| 96 | +# RELEASE=https://github.com/Reecepbcups/docci/releases/download/v0.7.1/docci |
| 97 | +# sudo wget --quiet -O /usr/local/bin/docci ${RELEASE} |
| 98 | +# sudo chmod a+rx /usr/local/bin/docci |
| 99 | + |
| 100 | + |
| 101 | +# # installs wasm-tools as well, required for rust & ts |
| 102 | +# - name: Run docci (go) |
| 103 | +# run: docci components/golang-evm-price-oracle/config.json |
| 104 | + |
| 105 | +# - name: Run docci (rust) |
| 106 | +# run: docci components/evm-price-oracle/config.json |
| 107 | + |
| 108 | +# # - name: Run docci (typescript) |
| 109 | +# # run: docci components/js-evm-price-oracle/config.json |
0 commit comments