Skip to content

Commit

Permalink
Merge pull request #1323 from UncleGrumpy/doc_build_fix
Browse files Browse the repository at this point in the history
Pin OTP to specific version for documentation workflows

Building and publishing documentation is failing again, let's try pinning to a
specific OTP version known to be capable of building the documentation.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Oct 13, 2024
2 parents d349496 + 69ee6a6 commit 9682258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
# Documentation currently fails to build with OTP-27 and recent OTP-26.
container: erlang:25
container: erlang:26.0.2

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,22 @@ jobs:
os: [ ubuntu-24.04 ]
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
container: erlang:26.0.2

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

- name: Install Deps
run: |
sudo apt update -y
DEBIAN_FRONTEND=noninteractive sudo apt install -y git cmake doxygen graphviz python3-pip python3-virtualenv python3-setuptools python3-stemmer wget
apt update -y
DEBIAN_FRONTEND=noninteractive apt install -y git cmake doxygen graphviz python3-pip python3-virtualenv python3-setuptools python3-stemmer wget
- uses: actions/cache@v4
id: sphinx-cache
with:
path: /home/runner/python-env/sphinx
key: ${{ matrix.os }}-sphinx-install
key: ${{ matrix.os }}-${{ job.container.id }}-sphinx-install

- name: Install Sphinx
if: ${{ steps.sphinx-cache.outputs.cache-hit != 'true' }}
Expand All @@ -74,15 +75,6 @@ jobs:
python3 -m pip install breathe
python3 -m pip install pygments
- uses: erlef/setup-beam@v1
with:
otp-version: "25"
elixir-version: "1.17"
hexpm-mirrors: |
https://builds.hex.pm
https://repo.hex.pm
https://cdn.jsdelivr.net/hex
- name: Install rebar3
working-directory: /tmp
run: |
Expand Down

0 comments on commit 9682258

Please sign in to comment.