Skip to content

add windows build

add windows build #26

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version-file: 'go.mod'
# local build
#- name: Compile the binary
# run: |
# make bin/goldpinger
# ./bin/goldpinger -h
#
# # simple Docker build
# - name: Build the Docker image
# run: |
# make build
# docker run `make version` --help
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
# multi-arch build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build regular image
id: docker_build
uses: docker/bake-action@v4
with:
targets: ci
push: true
env:
REPO: ghcr.io/cloudeteer/goldpinger