Skip to content

Commit f265f3e

Browse files
committed
Fix release workflow on linux arm
1 parent 5b5e67d commit f265f3e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,24 @@ jobs:
8888
echo "elixir=$elixir" >> $GITHUB_ENV
8989
echo "otp=$otp" >> $GITHUB_ENV
9090
91+
# TODO: remove ImageOS rewrite once correctly handled upstream,
92+
# see https://github.com/erlef/setup-beam/pull/462
93+
- run: |
94+
echo "ORIGINAL_IMAGE_OS=$ImageOS" >> $GITHUB_ENV
95+
# Strip '-arm64' from the end and overwrite ImageOS.
96+
CLEANED_OS="${ImageOS%-arm64}"
97+
echo "ImageOS=$CLEANED_OS" >> $GITHUB_ENV
98+
9199
- uses: erlef/setup-beam@v1
92100
with:
93101
otp-version: ${{ env.otp }}
94102
elixir-version: ${{ env.elixir }}
95103

104+
- if: always()
105+
run: |
106+
# Restore ImageOS back to its original value.
107+
echo "ImageOS=${{ env.ORIGINAL_IMAGE_OS }}" >> $GITHUB_ENV
108+
96109
- name: Setup Rust
97110
uses: dtolnay/rust-toolchain@stable
98111
with:

0 commit comments

Comments
 (0)