From 79bcfca0682a854074b16d81a4a65043015e0555 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Jun 2025 18:20:13 +0300 Subject: [PATCH] ci: uhm --- .github/workflows/build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c975801..a4025ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,13 +9,18 @@ on: workflow_dispatch: jobs: - build: + build-bin: # permissions: # contents: write - runs-on: ubuntu-latest + # runs-on: ubuntu-latest + runs-on: debian:12 steps: - name: Checkout uses: actions/checkout@v4 + - name: Print build env + run: | + cat /etc/os-release + uname -a - name: Set up Go uses: actions/setup-go@v4 with: @@ -32,10 +37,10 @@ jobs: mv dist/* ../api/web - name: Build server for linux working-directory: ./apps/api - run: GOOS=linux go build -ldflags="-s -w" --tags=fts5 -v -o ./yabl . + run: GOOS=linux go build -ldflags="-s -w" --tags=fts5 -o ./yabl . - name: Build book-reaper for linux working-directory: ./apps/book-reaper - run: GOOS=linux go build -ldflags="-s -w" --tags=fts5 -v -o ./book-reaper ./cmd/book-reaper + run: GOOS=linux go build -ldflags="-s -w" --tags=fts5 -o ./book-reaper ./cmd/book-reaper - name: Upload build artifacts uses: actions/upload-artifact@v3 with: @@ -77,8 +82,8 @@ jobs: # asset_name: yabl-windows-x86_64.exe # asset_content_type: application/octet-stream publish-docker: - runs-on: ubuntu-latest - needs: [build] + runs-on: debian:12 + needs: [build-bin] steps: - uses: actions/checkout@v3