Skip to content

Commit 7ddaeac

Browse files
committed
Update release workflow for Ubuntu 24.04 and fix Linux build step
1 parent 7948485 commit 7ddaeac

1 file changed

Lines changed: 38 additions & 25 deletions

File tree

.github/workflows/release.yml

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
binary_os_suffix: macos
2626
binary_arch_suffix: arm64
2727
architecture: arm
28-
- runs_on_tag: ubuntu-22.04
28+
- runs_on_tag: ubuntu-24.04
2929
binary_os_suffix: linux
3030
binary_arch_suffix: arm64
3131
arch: aarch64
32-
distro: alpine_latest
32+
# distro: alpine_latest
3333
- runs_on_tag: ubuntu-24.04
3434
binary_os_suffix: linux
3535
binary_arch_suffix: amd64
3636
arch: none
37-
distro: none
38-
base_image: amd64/alpine
37+
# distro: none
38+
# base_image: amd64/alpine
3939

4040
runs-on: ${{ matrix.runs_on_tag }}
4141

@@ -66,33 +66,46 @@ jobs:
6666
chmod +x hetzner-k3s
6767
cp hetzner-k3s ${{ env.FILENAME }}
6868
69-
- if: matrix.binary_os_suffix == 'linux'
70-
uses: uraimo/run-on-arch-action@v2
71-
name: linux build step
72-
with:
73-
arch: ${{ matrix.arch }}
74-
distro: ${{ matrix.distro }}
75-
base_image: ${{ matrix.base_image }}
69+
# - if: matrix.binary_os_suffix == 'linux'
70+
# # uses: uraimo/run-on-arch-action@v2
71+
# name: linux build step
72+
# with:
73+
# arch: ${{ matrix.arch }}
74+
# distro: ${{ matrix.distro }}
75+
# # base_image: ${{ matrix.base_image }}
76+
77+
# shell: /bin/sh
78+
79+
# install: |
80+
# apk update
81+
# apk add --update --no-cache gcc gmp-dev libevent-dev musl-dev pcre-dev pcre2-dev libxml2-dev \
82+
# openssl-dev tzdata yaml-dev zlib-dev xz-dev \
83+
# make git autoconf automake libtool patch libssh2-dev crystal shards gc-dev
7684

77-
shell: /bin/sh
85+
# run: |
86+
# shards install --without-development
7887

79-
install: |
80-
apk update
81-
apk add --update --no-cache gcc gmp-dev libevent-dev musl-dev pcre-dev pcre2-dev libxml2-dev \
82-
openssl-dev tzdata yaml-dev zlib-dev xz-dev \
83-
make git autoconf automake libtool patch libssh2-dev crystal shards gc-dev
88+
# # Build without full static linking - this creates a binary that only depends on common system libs
89+
# crystal build src/hetzner-k3s.cr --release \
90+
# --link-flags="-static-libgcc -static-libstdc++"
8491

85-
run: |
86-
shards install --without-development
92+
# # Check dependencies (for debugging)
93+
# ldd hetzner-k3s || true
8794

88-
# Build without full static linking - this creates a binary that only depends on common system libs
89-
crystal build src/hetzner-k3s.cr --release \
90-
--link-flags="-static-libgcc -static-libstdc++"
95+
# cp hetzner-k3s ${{ env.FILENAME }}
9196

92-
# Check dependencies (for debugging)
93-
ldd hetzner-k3s || true
9497

95-
cp hetzner-k3s ${{ env.FILENAME }}
98+
- if: matrix.binary_os_suffix == 'linux'
99+
name: linux build step
100+
run: |
101+
sudo apt-get update
102+
sudo apt-get install -y libssl-dev libxml2-dev libgmp-dev \
103+
libyaml-dev libpcre3-dev libevent-dev
104+
105+
shards install --without-development
106+
crystal build src/hetzner-k3s.cr --release \
107+
--link-flags="-static-libgcc -static-libstdc++"
108+
cp hetzner-k3s ${{ env.FILENAME }}
96109
97110
- name: Publish new version
98111
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)