From a2585463adb3a0ebfdf76dbe4212affcd4805d72 Mon Sep 17 00:00:00 2001 From: Benny Date: Wed, 5 Jul 2023 04:42:21 +0200 Subject: [PATCH] build binary using centos 7 (#245) fix #236 --- .github/workflows/release_binary.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release_binary.yaml b/.github/workflows/release_binary.yaml index 35c1e1d..71a31ca 100644 --- a/.github/workflows/release_binary.yaml +++ b/.github/workflows/release_binary.yaml @@ -17,23 +17,17 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: '1.20' - - - name: Setup necessary packages - run: | - sudo apt install libvips-dev -y + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Make WebP Server Go run: | - make + 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: Check for ldd version run: | - ldd --version ldd builds/webp-server-linux-amd64 - uses: "marvinpinto/action-automatic-releases@latest" @@ -43,4 +37,4 @@ jobs: title: "WebP Server Go" files: | builds/webp-server-linux-amd64 - builds/webp-server-linux-amd64.sha256 \ No newline at end of file + builds/webp-server-linux-amd64.sha256