Skip to content

Commit

Permalink
Pin OTP to specific version for documentation workflows
Browse files Browse the repository at this point in the history
Building and publishing documentation is failing again, let's try pinning to a
specific OTP version known to be capable of building the documentation.

Removes the docs-build test, and instead uses the publish test, but skips actually
publishing the docs on pull requests.

Signed-off-by: Winford <[email protected]>
  • Loading branch information
UncleGrumpy committed Oct 13, 2024
1 parent d349496 commit 96830d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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
14 changes: 3 additions & 11 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ 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
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 96830d5

Please sign in to comment.