deploy docs on GitHub Actions
@@ -30,12 +30,8 @@ jobs:
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/checkout@v2
- - name: Checkout submodules
- shell: bash
- run: |
- auth_header="$(git config --local --get http.https://github.com/.extraheader)"
- git submodule sync --recursive
- git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
+ with:
+ submodules: 'recursive'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
@@ -53,10 +49,6 @@ jobs:
run: |
cd zCore
make build hypervisor=1
- - name: Build docs
- uses: actions-rs/cargo@v1
- with:
- command: doc
build-aarch64:
runs-on: ubuntu-20.04
@@ -79,7 +71,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Pull prebuilt images
- run: git lfs pull -X prebuilt/zircon/x64/bringup.zbi prebuilt/zircon/x64/core-tests.zbi prebuilt/zircon/arm64
+ run: git lfs pull -I prebuilt/linux/libc-libos.so
- name: Prepare rootfs
run: make rootfs
- name: Test
@@ -117,14 +109,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
+ with:
+ submodules: 'recursive'
- name: Pull prebuilt images
run: git lfs pull -X prebuilt/zircon/x64/bringup.zbi prebuilt/zircon/arm64
- - name: Checkout submodules
- shell: bash
- run: |
- auth_header="$(git config --local --get http.https://github.com/.extraheader)"
- git submodule sync --recursive
- git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
@@ -144,3 +132,20 @@ jobs:
cd scripts
pip3 install pexpect
python3 core-tests.py
+
+ doc:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build docs
+ uses: actions-rs/cargo@v1
+ with:
+ command: doc
+ args: --no-deps
+ - name: Deploy to Github Pages
+ if: ${{ github.ref == 'refs/heads/master' }}
+ uses: JamesIves/github-pages-deploy-action@releases/v3
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: target/doc
