Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 51 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
rebar3_version:
- "3.25.1"
- "3.27.0"
arch:
- "x64"
- "arm64"
Expand All @@ -42,6 +42,20 @@ jobs:

cat $GITHUB_OUTPUT

- name: Classify release
id: release
run: |
case "${{ steps.version.outputs.otp_version }}" in
*-alpha*|*-beta*|*-rc*)
echo "gh_release_flags=--prerelease" >> $GITHUB_OUTPUT
;;
*)
echo "gh_release_flags=" >> $GITHUB_OUTPUT
;;
esac

cat $GITHUB_OUTPUT

- name: Build
run: |
chmod +x ./build.sh
Expand All @@ -57,12 +71,14 @@ jobs:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
GH_RELEASE_FLAGS: ${{ steps.release.outputs.gh_release_flags }}
run: |
apk add --no-cache github-cli
gh release create OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}.tar.gz \
--title "OTP ${{ steps.version.outputs.otp_version }}" \
--notes "Erlang/OTP ${{ steps.version.outputs.otp_version }} built for Linux" \
${GH_RELEASE_FLAGS} \
--repo ${{ github.repository }} || \
gh release upload OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}.tar.gz \
Expand All @@ -78,7 +94,7 @@ jobs:
fail-fast: false
matrix:
rebar3_version:
- "3.25.1"
- "3.27.0"
arch:
- "x64"
- "arm64"
Expand All @@ -98,6 +114,20 @@ jobs:

cat $GITHUB_OUTPUT

- name: Classify release
id: release
run: |
case "${{ steps.version.outputs.otp_version }}" in
*-alpha*|*-beta*|*-rc*)
echo "gh_release_flags=--prerelease" >> $GITHUB_OUTPUT
;;
*)
echo "gh_release_flags=" >> $GITHUB_OUTPUT
;;
esac

cat $GITHUB_OUTPUT

- name: Build
run: |
chmod +x ./build-musl.sh
Expand All @@ -113,12 +143,14 @@ jobs:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
GH_RELEASE_FLAGS: ${{ steps.release.outputs.gh_release_flags }}
run: |
apk add --no-cache github-cli
gh release create OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}-musl.tar.gz \
--title "OTP ${{ steps.version.outputs.otp_version }}" \
--notes "Erlang/OTP ${{ steps.version.outputs.otp_version }} built for Linux" \
${GH_RELEASE_FLAGS} \
--repo ${{ github.repository }} || \
gh release upload OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}-musl.tar.gz \
Expand All @@ -134,7 +166,7 @@ jobs:
fail-fast: false
matrix:
rebar3_version:
- "3.25.1"
- "3.27.0"
arch:
- "x64"
- "arm64"
Expand All @@ -155,6 +187,20 @@ jobs:

cat $GITHUB_OUTPUT

- name: Classify release
id: release
run: |
case "${{ steps.version.outputs.otp_version }}" in
*-alpha*|*-beta*|*-rc*)
echo "gh_release_flags=--prerelease" >> $GITHUB_OUTPUT
;;
*)
echo "gh_release_flags=" >> $GITHUB_OUTPUT
;;
esac

cat $GITHUB_OUTPUT

- name: Build
run: |
chmod +x ./build-glibc.sh
Expand All @@ -170,12 +216,14 @@ jobs:
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
GH_RELEASE_FLAGS: ${{ steps.release.outputs.gh_release_flags }}
run: |
apt install -y --no-install-recommends gh
gh release create OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}-glibc.tar.gz \
--title "OTP ${{ steps.version.outputs.otp_version }}" \
--notes "Erlang/OTP ${{ steps.version.outputs.otp_version }} built for Linux" \
${GH_RELEASE_FLAGS} \
--repo ${{ github.repository }} || \
gh release upload OTP-${{ steps.version.outputs.otp_version }} \
/tmp/erlang-${{ steps.version.outputs.otp_version }}-${{ matrix.arch }}-glibc.tar.gz \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check for now OTP releases
- name: Check for new OTP releases
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
git fetch --tags
releases=$(gh release list --exclude-drafts --exclude-pre-releases -R erlang/otp --limit 3 | cut -f 3)
releases=$(gh release list --exclude-drafts -R erlang/otp --limit 3 | cut -f 3)

for release in $releases
do
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
git fetch --tags
releases=$(gh release list --exclude-drafts --exclude-pre-releases --limit 50 | cut -f 3)
releases=$(gh release list --exclude-drafts --limit 50 | cut -f 3)

for release in $releases
do
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM docker.io/library/alpine:3.22

ENV OTP_VERSION="28.3.2" \
REBAR3_VERSION="3.25.0"
ENV OTP_VERSION="29.0-rc3" \
REBAR3_VERSION="3.27.0"

LABEL org.opencontainers.image.version=$OTP_VERSION

Expand Down