Skip to content

init: initial commit #1

init: initial commit

init: initial commit #1

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- goos: darwin
goarch: arm64
suffix: darwin-arm64
- goos: linux
goarch: amd64
suffix: linux-amd64
- goos: windows
goarch: amd64
suffix: windows-amd64.exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -o http-pull-${{ matrix.suffix }} ./cmd/http-pull/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: http-pull-${{ matrix.suffix }}
path: http-pull-${{ matrix.suffix }}
package-deb:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
include:
- arch: amd64
artifact: http-pull-linux-amd64
steps:
- uses: actions/checkout@v4
- name: Download binary
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact }}
- name: Build .deb package
run: |
chmod +x ${{ matrix.artifact }}
bash packaging/build-deb.sh
env:
VERSION: 0.1.0
ARCH: ${{ matrix.arch }}
BINARY: ${{ matrix.artifact }}
- name: Upload .deb package
uses: actions/upload-artifact@v4
with:
name: http-pull_${{ matrix.arch }}.deb
path: "*.deb"