Update build grpcwebproxy workflows. #11
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: Cross compile grpcwebproxy | |
on: | |
push: | |
tags: | |
- 'grpcwebproxy*' | |
workflow_dispatch: | |
# push: | |
# branches: | |
# - main | |
jobs: | |
releases-matrix: | |
name: Release Go Binary | |
runs-on: ubuntu-latest | |
env: | |
CGO_ENABLED: 0 | |
BINARY: grpcwebproxy | |
strategy: | |
matrix: | |
goos: [linux] | |
goarch: ["386", amd64, arm64, arm, s390x, riscv64] | |
# exclude: | |
# - goarch: "386" | |
# goos: darwin | |
# - goarch: arm64 | |
# goos: windows | |
steps: | |
- name: Git clone repository | |
uses: actions/[email protected] | |
with: | |
repository: improbable-eng/grpc-web | |
fetch-depth: 1 | |
- uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
goversion: "1.21.5" | |
project_path: "go/${{ env.BINARY }}" | |
ldflags: -s -w --extldflags '-static -fpic' | |
md5sum: "FALSE" | |
release_tag: "${{ env.BINARY }}" | |
release_name: "${{ env.BINARY }}" | |
binary_name: "${{ env.BINARY }}" | |
compress_assets: "AUTO" | |
asset_name: "${{ env.BINARY }}-${{ matrix.goos }}-${{ matrix.goarch }}" | |
- name: Delete old workflow runs | |
uses: MajorScruffy/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
repository: ${{ github.repository }} | |
older-than-seconds: 3600 |