diff options
| -rwxr-xr-x | .github/ci/doc.sh | 34 | ||||
| -rw-r--r-- | .github/workflows/doc.yml | 87 | ||||
| -rw-r--r-- | embassy-cortex-m/Cargo.toml | 2 |
3 files changed, 34 insertions, 89 deletions
diff --git a/.github/ci/doc.sh b/.github/ci/doc.sh new file mode 100755 index 000000000..eabde742b --- /dev/null +++ b/.github/ci/doc.sh | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | ## on push branch=main | ||
| 3 | |||
| 4 | set -euo pipefail | ||
| 5 | |||
| 6 | export RUSTUP_HOME=/ci/cache/rustup | ||
| 7 | export CARGO_HOME=/ci/cache/cargo | ||
| 8 | export CARGO_TARGET_DIR=/ci/cache/target | ||
| 9 | export BUILDER_THREADS=6 | ||
| 10 | |||
| 11 | docserver-builder ./embassy-boot/boot crates/embassy-boot/git.zup | ||
| 12 | docserver-builder ./embassy-boot/nrf crates/embassy-boot-nrf/git.zup | ||
| 13 | docserver-builder ./embassy-boot/rp crates/embassy-boot-rp/git.zup | ||
| 14 | docserver-builder ./embassy-boot/stm32 crates/embassy-boot-stm32/git.zup | ||
| 15 | docserver-builder ./embassy-cortex-m crates/embassy-cortex-m/git.zup | ||
| 16 | docserver-builder ./embassy-embedded-hal crates/embassy-embedded-hal/git.zup | ||
| 17 | docserver-builder ./embassy-executor crates/embassy-executor/git.zup | ||
| 18 | docserver-builder ./embassy-futures crates/embassy-futures/git.zup | ||
| 19 | docserver-builder ./embassy-lora crates/embassy-lora/git.zup | ||
| 20 | docserver-builder ./embassy-net crates/embassy-net/git.zup | ||
| 21 | docserver-builder ./embassy-net-driver crates/embassy-net-driver/git.zup | ||
| 22 | docserver-builder ./embassy-net-driver-channel crates/embassy-net-driver-channel/git.zup | ||
| 23 | docserver-builder ./embassy-nrf crates/embassy-nrf/git.zup | ||
| 24 | docserver-builder ./embassy-rp crates/embassy-rp/git.zup | ||
| 25 | docserver-builder ./embassy-sync crates/embassy-sync/git.zup | ||
| 26 | docserver-builder ./embassy-time crates/embassy-time/git.zup | ||
| 27 | docserver-builder ./embassy-usb crates/embassy-usb/git.zup | ||
| 28 | docserver-builder ./embassy-usb-driver crates/embassy-usb-driver/git.zup | ||
| 29 | docserver-builder ./embassy-usb-logger crates/embassy-usb-logger/git.zup | ||
| 30 | #docserver-builder ./embassy-stm32 crates/embassy-stm32/git.zup | ||
| 31 | |||
| 32 | export KUBECONFIG=/ci/secrets/kubeconfig.yml | ||
| 33 | POD=$(kubectl -n embassy get po -l app=docserver -o jsonpath={.items[0].metadata.name}) | ||
| 34 | kubectl cp crates $POD:/data | ||
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 | ||
diff --git a/embassy-cortex-m/Cargo.toml b/embassy-cortex-m/Cargo.toml index 2eb0cce2a..70adda7df 100644 --- a/embassy-cortex-m/Cargo.toml +++ b/embassy-cortex-m/Cargo.toml | |||
| @@ -13,8 +13,6 @@ flavors = [ | |||
| 13 | { name = "thumbv7m-none-eabi", target = "thumbv7m-none-eabi", features = [] }, | 13 | { name = "thumbv7m-none-eabi", target = "thumbv7m-none-eabi", features = [] }, |
| 14 | { name = "thumbv7em-none-eabi", target = "thumbv7em-none-eabi", features = [] }, | 14 | { name = "thumbv7em-none-eabi", target = "thumbv7em-none-eabi", features = [] }, |
| 15 | { name = "thumbv7em-none-eabihf", target = "thumbv7em-none-eabihf", features = [] }, | 15 | { name = "thumbv7em-none-eabihf", target = "thumbv7em-none-eabihf", features = [] }, |
| 16 | { name = "thumbv8m.base-none-eabi", target = "thumbv8m.base-none-eabi", features = [] }, | ||
| 17 | { name = "thumbv8m.main-none-eabi", target = "thumbv8m.main-none-eabi", features = [] }, | ||
| 18 | { name = "thumbv8m.main-none-eabihf", target = "thumbv8m.main-none-eabihf", features = [] }, | 16 | { name = "thumbv8m.main-none-eabihf", target = "thumbv8m.main-none-eabihf", features = [] }, |
| 19 | ] | 17 | ] |
| 20 | 18 | ||
