CI: install OTP where it's unpacked

9892e50 · Gabriel Morell · 2026-10-22 21:54

4 files +6 -4
Message
{commit_body(@commit)}

Files changed

modified .forgejo/workflows/checks.yml
+3 −2
@@ -49,10 +49,11 @@ jobs:
49 49 run: |
50 50 ubuntu=$(. /etc/os-release && echo "$VERSION_ID")
51 51 curl -sSfL "https://builds.hex.pm/builds/otp/ubuntu-${ubuntu}/OTP-${OTP_VERSION}.tar.gz" | tar xz -C /tmp
52 − (cd "/tmp/OTP-${OTP_VERSION}" && ./Install -minimal /tmp/otp > /dev/null)
52 + # Installed where it's unpacked: Install's root is its own directory.
53 + (cd "/tmp/OTP-${OTP_VERSION}" && ./Install -minimal "/tmp/OTP-${OTP_VERSION}" > /dev/null)
53 54 curl -sSfL -o /tmp/elixir.zip "https://builds.hex.pm/builds/elixir/v${ELIXIR_VERSION}-otp-${OTP_VERSION%%.*}.zip"
54 55 unzip -q -d /tmp/elixir /tmp/elixir.zip
55 − echo /tmp/otp/bin >> "$GITHUB_PATH"
56 + echo "/tmp/OTP-${OTP_VERSION}/bin" >> "$GITHUB_PATH"
56 57 echo /tmp/elixir/bin >> "$GITHUB_PATH"
57 58
58 59 - name: Rust
modified .forgejo/workflows/dependency-updates.yml
+3 −2
@@ -41,10 +41,11 @@ jobs:
41 41 run: |
42 42 ubuntu=$(. /etc/os-release && echo "$VERSION_ID")
43 43 curl -sSfL "https://builds.hex.pm/builds/otp/ubuntu-${ubuntu}/OTP-${OTP_VERSION}.tar.gz" | tar xz -C /tmp
44 − (cd "/tmp/OTP-${OTP_VERSION}" && ./Install -minimal /tmp/otp > /dev/null)
44 + # Installed where it's unpacked: Install's root is its own directory.
45 + (cd "/tmp/OTP-${OTP_VERSION}" && ./Install -minimal "/tmp/OTP-${OTP_VERSION}" > /dev/null)
45 46 curl -sSfL -o /tmp/elixir.zip "https://builds.hex.pm/builds/elixir/v${ELIXIR_VERSION}-otp-${OTP_VERSION%%.*}.zip"
46 47 unzip -q -d /tmp/elixir /tmp/elixir.zip
47 − echo /tmp/otp/bin >> "$GITHUB_PATH"
48 + echo "/tmp/OTP-${OTP_VERSION}/bin" >> "$GITHUB_PATH"
48 49 echo /tmp/elixir/bin >> "$GITHUB_PATH"
49 50
50 51 - name: Hex

Parents: 8c75484