Skip to content

Commit

Permalink
build: Release build automation ([ElementsProject#7776]).
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
s373nZ committed Nov 5, 2024
1 parent 183da39 commit 325c734
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
# https://docs.corelightning.org/docs/repro
name: "Release 🚀"
on:
push:
# TODO: Remove after testing.
branches:
- 7776-release-builds-automation
tags:
- 'v[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+[0-9a-z]+'
workflow_dispatch:

jobs:
ubuntu-noble:
name: Release
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v4

# tools/build-release.sh requires lowdown
- name: Prepare base environment
run: |
sudo apt-get install -y lowdown
./configure
- name: Build environment setup
run: contrib/cl-repro.sh

- name: Build release
# TODO: Remove forced version after testing.
run: FORCE_VERSION="24.08.2" tools/build-release.sh bin-Fedora-28-amd64 bin-Ubuntu sign

- name: List release directory
run: ls -alh release/
2 changes: 1 addition & 1 deletion tools/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ for target in $TARGETS; do
# Capitalize the first letter of distro
D=$(echo "$d" | awk '{print toupper(substr($0,1,1))substr($0,2)}')
echo "Building Ubuntu $D Image"
docker run --rm -v "$(pwd)":/repo -e FORCE_MTIME="$MTIME" -e FORCE_VERSION="$VERSION" -ti cl-repro-"$d"
docker run --rm -v "$(pwd)":/repo -e FORCE_MTIME="$MTIME" -e FORCE_VERSION="$VERSION" cl-repro-"$d"
echo "Ubuntu $D Image Built"
done
;;
Expand Down

0 comments on commit 325c734

Please sign in to comment.