diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/doc.yml | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml deleted file mode 100644 index a69a49718..000000000 --- a/.github/workflows/doc.yml +++ /dev/null | |||
| @@ -1,87 +0,0 @@ | |||
| 1 | name: Docs | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [main] | ||
| 6 | |||
| 7 | env: | ||
| 8 | BUILDER_THREADS: '1' | ||
| 9 | |||
| 10 | jobs: | ||
| 11 | doc: | ||
| 12 | runs-on: ubuntu-latest | ||
| 13 | |||
| 14 | # Since stm32 crates take SO LONG to build, we split them | ||
| 15 | # into a separate job. This way it doesn't slow down updating | ||
| 16 | # the rest. | ||
| 17 | strategy: | ||
| 18 | matrix: | ||
| 19 | crates: | ||
| 20 | #- stm32 # runs out of disk space... | ||
| 21 | - rest | ||
| 22 | |||
| 23 | # This will ensure at most one doc build job is running at a time | ||
| 24 | # (for stm32 and non-stm32 independently). | ||
| 25 | # If another job is already running, the new job will wait. | ||
| 26 | # If another job is already waiting, it'll be canceled. | ||
| 27 | # This means some commits will be skipped, but that's fine because | ||
| 28 | # we only care that the latest gets built. | ||
| 29 | concurrency: doc-${{ matrix.crates }} | ||
| 30 | |||
| 31 | steps: | ||
| 32 | - uses: actions/checkout@v3 | ||
| 33 | with: | ||
| 34 | submodules: true | ||
| 35 | - name: Install Rust targets | ||
| 36 | run: | | ||
| 37 | rustup target add x86_64-unknown-linux-gnu | ||
| 38 | rustup target add wasm32-unknown-unknown | ||
| 39 | rustup target add thumbv6m-none-eabi | ||
| 40 | rustup target add thumbv7m-none-eabi | ||
| 41 | rustup target add thumbv7em-none-eabi | ||
| 42 | rustup target add thumbv7em-none-eabihf | ||
| 43 | rustup target add thumbv8m.base-none-eabi | ||
| 44 | rustup target add thumbv8m.main-none-eabi | ||
| 45 | rustup target add thumbv8m.main-none-eabihf | ||
| 46 | |||
| 47 | - name: Install docserver | ||
| 48 | run: | | ||
| 49 | wget -q -O /usr/local/bin/builder "https://github.com/embassy-rs/docserver/releases/download/v0.4/builder" | ||
| 50 | chmod +x /usr/local/bin/builder | ||
| 51 | |||
| 52 | - name: build-stm32 | ||
| 53 | if: ${{ matrix.crates=='stm32' }} | ||
| 54 | run: | | ||
| 55 | mkdir crates | ||
| 56 | builder ./embassy-stm32 crates/embassy-stm32/git.zup | ||
| 57 | |||
| 58 | - name: build-rest | ||
| 59 | if: ${{ matrix.crates=='rest' }} | ||
| 60 | run: | | ||
| 61 | mkdir crates | ||
| 62 | builder ./embassy-boot/boot crates/embassy-boot/git.zup | ||
| 63 | builder ./embassy-boot/nrf crates/embassy-boot-nrf/git.zup | ||
| 64 | builder ./embassy-boot/rp crates/embassy-boot-rp/git.zup | ||
| 65 | builder ./embassy-boot/stm32 crates/embassy-boot-stm32/git.zup | ||
| 66 | builder ./embassy-cortex-m crates/embassy-cortex-m/git.zup | ||
| 67 | builder ./embassy-embedded-hal crates/embassy-embedded-hal/git.zup | ||
| 68 | builder ./embassy-executor crates/embassy-executor/git.zup | ||
| 69 | builder ./embassy-futures crates/embassy-futures/git.zup | ||
| 70 | builder ./embassy-lora crates/embassy-lora/git.zup | ||
| 71 | builder ./embassy-net crates/embassy-net/git.zup | ||
| 72 | builder ./embassy-net-driver crates/embassy-net-driver/git.zup | ||
| 73 | builder ./embassy-net-driver-channel crates/embassy-net-driver-channel/git.zup | ||
| 74 | builder ./embassy-nrf crates/embassy-nrf/git.zup | ||
| 75 | builder ./embassy-rp crates/embassy-rp/git.zup | ||
| 76 | builder ./embassy-sync crates/embassy-sync/git.zup | ||
| 77 | builder ./embassy-time crates/embassy-time/git.zup | ||
| 78 | builder ./embassy-usb crates/embassy-usb/git.zup | ||
| 79 | builder ./embassy-usb-driver crates/embassy-usb-driver/git.zup | ||
| 80 | builder ./embassy-usb-logger crates/embassy-usb-logger/git.zup | ||
| 81 | |||
| 82 | - name: upload | ||
| 83 | run: | | ||
| 84 | mkdir -p ~/.kube | ||
| 85 | echo "${{secrets.KUBECONFIG}}" > ~/.kube/config | ||
| 86 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | ||
| 87 | kubectl cp crates $POD:/data | ||
