Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop old version of glibc #384

Merged
merged 1 commit into from
Feb 27, 2025
Merged
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
81 changes: 57 additions & 24 deletions .github/workflows/release_binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,75 @@ on:
- '*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
build-amd64:
name: Create AMD64 Binary
runs-on: ubuntu-22.04 # Using 22.04 of ubuntu to get the lowest version of glibc
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt update && sudo apt install --no-install-recommends libvips-dev -y
- name: Make
run: |
make
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: webp-server-linux-amd64
path: builds/webp-server-linux-amd64

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Make WebP Server Go (amd64)
build-arm64:
name: Create ARM64 Binary
runs-on: ubuntu-22.04-arm # Using 22.04 of ubuntu to get the lowest version of glibc
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
docker run --rm -w /app -v "$(pwd)":/app webpsh/libvips make
sudo chown -R $USER:$USER builds/
sha256sum builds/webp-server-linux-amd64 > builds/webp-server-linux-amd64.sha256
- name: Make WebP Server Go (arm64)
sudo apt update && sudo apt install --no-install-recommends libvips-dev -y
- name: Make
run: |
docker run --rm -w /app -v "$(pwd)":/app --platform linux/arm64 webpsh/libvips make
sudo chown -R $USER:$USER builds/
sha256sum builds/webp-server-linux-arm64 > builds/webp-server-linux-arm64.sha256
- name: Check for ldd version(AMD64 only)
make
- name: Upload Binary
uses: actions/upload-artifact@v4
with:
name: webp-server-linux-arm64

release-binary:
name: Release Binary
runs-on: ubuntu-latest
needs: [build-amd64, build-arm64]
steps:
- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: webp-server-linux-amd64

- name: Download Binaries
uses: actions/download-artifact@v4
with:
name: webp-server-linux-arm64

- name: Get SHA256
run: |
ldd builds/webp-server-linux-amd64
sha256sum webp-server-linux-amd64 > webp-server-linux-amd64.sha256
sha256sum webp-server-linux-arm64 >webp-server-linux-arm64.sha256
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: "WebP Server Go"
files: |
builds/webp-server-linux-amd64
builds/webp-server-linux-amd64.sha256
builds/webp-server-linux-arm64
builds/webp-server-linux-arm64.sha256
webp-server-linux-amd64
webp-server-linux-amd64.sha256
webp-server-linux-arm64
webp-server-linux-arm64.sha256
Loading