Bump docker/build-push-action from 4.1.1 to 6.9.0 #1123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile Shentu Daemon | |
# Controls when the action will run. | |
# This workflow runr on pushes to master & every Pull Requests. (Or when manually triggered) | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
# This workflow makes x86_64 binaries for mac, windows, and linux. | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
arch: [amd64] | |
targetos: [darwin, linux] | |
include: | |
- targetos: darwin | |
arch: arm64 | |
# include: | |
# - targetos: windows | |
# arch: amd64 | |
name: shentud ${{ matrix.arch }} for ${{ matrix.targetos }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
go-version: '^1.19' | |
env: | |
GOOS: ${{ matrix.targetos }} | |
GOARCH: ${{ matrix.arch }} | |
- name: Compile shentud binary | |
run: | | |
go mod download | |
cd app/shentud/cmd | |
go build . | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: shentud ${{ matrix.targetos }} ${{ matrix.arch }} | |
path: app/shentud/cmd/shentu |