Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaototi committed Jun 21, 2023
1 parent 9fce2a1 commit a47ba44
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ jobs:
id: docker_build
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
push: true
tags: ghcr.io/tpc3/bocchi-go:latest
tags: ghcr.io/tpc3/bocchi-go:latest
47 changes: 47 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [linux-amd64, linux-arm, linux-arm64]
include:
- arch: linux-amd64
goos: linux
goarch: amd64
- arch: linux-arm
goos: linux
goarch: arm
- arch: linux-arm64
goos: linux
goarch: arm64

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Build
run: mkdir -p bin/${{ matrix.goos }}/${{ matrix.goarch }}
- name: Build
run: go build -o bin/${{ matrix.goos }}/${{ matrix.goarch }}/
env:
CGO_ENABLED: 0
GOARCH: ${{ matrix.goarch }}
GOOS: ${{ matrix.goos }}

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
path: bin

0 comments on commit a47ba44

Please sign in to comment.