diff --git a/.github/workflows/docs-check.yml b/.github/workflows/docs-check.yml index d4e3dc810b5..8cd8fa8af00 100644 --- a/.github/workflows/docs-check.yml +++ b/.github/workflows/docs-check.yml @@ -10,9 +10,7 @@ on: - .github/workflows/docs-check.yml env: - # Disable full debug symbol generation to speed up CI build and keep memory down - # "1" means line tables only, which is useful for panic tracebacks. - RUSTFLAGS: "-C debuginfo=1" + RUSTFLAGS: "-C debuginfo=0" # according to: https://matklad.github.io/2021/09/04/fast-rust-builds.html # CI builds are faster with incremental disabled. CARGO_INCREMENTAL: "0" @@ -35,10 +33,16 @@ jobs: sudo apt install -y -qq doxygen pandoc - name: Build python wheel uses: ./.github/workflows/build_linux_wheel + - name: Free disk space + working-directory: python + run: | + sudo chown 1001:118 -R target + mv target/wheels/*.whl ./ + cargo clean - name: Build Python working-directory: docs run: | - python -m pip install $(ls ../python/target/wheels/*.whl) + python -m pip install ../python/*.whl python -m pip install -r requirements.txt - name: Run test working-directory: docs diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index f5f40b80ac8..4e22458bc21 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -19,9 +19,7 @@ concurrency: cancel-in-progress: true env: - # Disable full debug symbol generation to speed up CI build and keep memory down - # "1" means line tables only, which is useful for panic tracebacks. - RUSTFLAGS: "-C debuginfo=1" + RUSTFLAGS: "-C debuginfo=0" # according to: https://matklad.github.io/2021/09/04/fast-rust-builds.html # CI builds are faster with incremental disabled. CARGO_INCREMENTAL: "0" @@ -47,10 +45,16 @@ jobs: sudo apt install -y -qq doxygen pandoc - name: Build python wheel uses: ./.github/workflows/build_linux_wheel + - name: Free disk space + working-directory: python + run: | + sudo chown 1001:118 -R target + mv target/wheels/*.whl ./ + cargo clean - name: Build Python working-directory: python run: | - python -m pip install $(ls target/wheels/*.whl) + python -m pip install ../python/*.whl python -m pip install -r ../docs/requirements.txt - name: Build docs working-directory: docs