From 3c3cae333292d51879f5b1fcde90948471c181c1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 05:53:24 +0000 Subject: [PATCH 1/2] Initial plan From 3775f71b5dc5efa9208f86a3bdb888fb6d5332d2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 05:57:33 +0000 Subject: [PATCH 2/2] Add binary build jobs to pull_request.yml and push.yml Co-authored-by: UberKitten <566438+UberKitten@users.noreply.github.com> --- .github/workflows/pull_request.yml | 48 ++++++++++++++++++++++++++++++ .github/workflows/push.yml | 48 ++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8e6c9ea..6a27534 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -28,3 +28,51 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... + build: + name: Build Binaries + runs-on: ubuntu-latest + permissions: + contents: read + strategy: + matrix: + include: + - goos: linux + goarch: amd64 + suffix: linux-amd64 + - goos: linux + goarch: '386' + suffix: linux-i386 + - goos: darwin + goarch: amd64 + suffix: darwin-amd64 + - goos: darwin + goarch: arm64 + suffix: darwin-arm64 + - goos: freebsd + goarch: amd64 + suffix: freebsd-amd64 + - goos: freebsd + goarch: '386' + suffix: freebsd-i386 + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Build binary + env: + GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} + CGO_ENABLED: 0 + run: | + VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev-$(git rev-parse --short HEAD)") + go build -ldflags "-X main.version=$VERSION" -o rss2email-${{ matrix.suffix }} + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: rss2email-${{ matrix.suffix }} + path: rss2email-${{ matrix.suffix }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7e6877c..a4fc34e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -19,3 +19,51 @@ jobs: run: go build -v ./... - name: Test run: go test -v ./... + build-binaries: + name: Build Binaries + runs-on: ubuntu-latest + permissions: + contents: read + strategy: + matrix: + include: + - goos: linux + goarch: amd64 + suffix: linux-amd64 + - goos: linux + goarch: '386' + suffix: linux-i386 + - goos: darwin + goarch: amd64 + suffix: darwin-amd64 + - goos: darwin + goarch: arm64 + suffix: darwin-arm64 + - goos: freebsd + goarch: amd64 + suffix: freebsd-amd64 + - goos: freebsd + goarch: '386' + suffix: freebsd-i386 + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + - name: Build binary + env: + GOOS: ${{ matrix.goos }} + GOARCH: ${{ matrix.goarch }} + CGO_ENABLED: 0 + run: | + VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev-$(git rev-parse --short HEAD)") + go build -ldflags "-X main.version=$VERSION" -o rss2email-${{ matrix.suffix }} + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: rss2email-${{ matrix.suffix }} + path: rss2email-${{ matrix.suffix }}