Skip to content

Commit

Permalink
Add GitHub build step for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Aug 23, 2024
1 parent 79c1fda commit cc312f6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build

on:
push:
branches: ["test-ci"]

jobs:
build-docs:
runs-on: ubuntu-latest
container: riot/riotbuild
steps:
- name: Check out rust-documentation-builder
uses: actions/checkout@v3
- name: Run `make build-from-checkout`
# Note that this runs the RIOT checkout internally, both to reduce
# dependencies on GitHub actions and to gain the flexibility on running
# with different sources with the same ease locally and in CI.
run: |
pwd
ls -la
make build-from-checkout
find bin -name 'index.html'
- name: Create artifact of built documentation
uses: actions/upload-artifact@v4
with:
name: rustdoc
path: bin

0 comments on commit cc312f6

Please sign in to comment.