File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments