neiam
/gitgud
Git Gud
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
1
Log in to mark this repository.
CI: give setup-beam its ImageOS on the step
6676b00 · Gabriel Morell · 2026-10-22 21:32
Message
{commit_body(@commit)}
Files changed
modified
.forgejo/workflows/checks.yml
+6
−1
@@ -38,10 +38,15 @@ jobs:
| 38 | 38 | sudo apt-get install -y -q --no-install-recommends \ |
| 39 | 39 | build-essential git pkg-config libssl-dev libclang-dev |
| 40 | 40 | |
| 41 | + # setup-beam picks its OTP build by ImageOS, which the runner sets to | |
| 42 | + # "selfhosted"; given on the step itself, ours wins. | |
| 41 | 43 | - name: Say which Ubuntu this is, for setup-beam |
| 42 | − run: echo "ImageOS=ubuntu$(. /etc/os-release && echo "${VERSION_ID%%.*}")" >> "$GITHUB_ENV" | |
| 44 | + id: os | |
| 45 | + run: echo "image_os=ubuntu$(. /etc/os-release && echo "${VERSION_ID%%.*}")" >> "$GITHUB_OUTPUT" | |
| 43 | 46 | |
| 44 | 47 | - uses: erlef/setup-beam@v1 |
| 48 | + env: | |
| 49 | + ImageOS: ${{ steps.os.outputs.image_os }} | |
| 45 | 50 | with: |
| 46 | 51 | otp-version: "28.5.0.2" |
| 47 | 52 | elixir-version: "1.19.5" |
modified
.forgejo/workflows/dependency-updates.yml
+6
−1
@@ -30,10 +30,15 @@ jobs:
| 30 | 30 | |
| 31 | 31 | # The same toolchains the Dockerfile builds with: a lockfile is only |
| 32 | 32 | # as good as the resolver that wrote it. |
| 33 | + # setup-beam picks its OTP build by ImageOS, which the runner sets to | |
| 34 | + # "selfhosted"; given on the step itself, ours wins. | |
| 33 | 35 | - name: Say which Ubuntu this is, for setup-beam |
| 34 | − run: echo "ImageOS=ubuntu$(. /etc/os-release && echo "${VERSION_ID%%.*}")" >> "$GITHUB_ENV" | |
| 36 | + id: os | |
| 37 | + run: echo "image_os=ubuntu$(. /etc/os-release && echo "${VERSION_ID%%.*}")" >> "$GITHUB_OUTPUT" | |
| 35 | 38 | |
| 36 | 39 | - uses: erlef/setup-beam@v1 |
| 40 | + env: | |
| 41 | + ImageOS: ${{ steps.os.outputs.image_os }} | |
| 37 | 42 | with: |
| 38 | 43 | otp-version: "28.5.0.2" |
| 39 | 44 | elixir-version: "1.19.5" |
Parents: f72becf