Skip to content

Bump google.golang.org/grpc from 1.57.0 to 1.57.1 #137

Bump google.golang.org/grpc from 1.57.0 to 1.57.1

Bump google.golang.org/grpc from 1.57.0 to 1.57.1 #137

Workflow file for this run

permissions:
contents: write
on:
push:
tags:
- "v*.*.*"
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- uses: golangci/golangci-lint-action@v3
build:
strategy:
matrix:
os: [linux, darwin, windows]
arch: [amd64, arm64]
exclude:
- os: windows
arch: arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- run: |
CGO_ENABLED=0 GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} \
go build -o "bin/diambra-${{ matrix.os }}-${{ matrix.arch }}" ./cmd/diambra
- uses: actions/upload-artifact@v3
with:
name: diambra-${{ matrix.os }}-${{ matrix.arch }}
path: bin/diambra-${{ matrix.os }}-${{ matrix.arch }}
- run: go test -v ./...
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/diambra-${{ matrix.os }}-${{ matrix.arch }}
- name: create pip wheel and upload it
run: |
rm -rf dist
mkdir dist
./mkwheel/mkwheel diambra "${GITHUB_REF/refs\/tags\/v/}" dist/ README.md $${{ matrix.os }}_${{ matrix.arch }} ./bin/diambra-${{ matrix.os }}-${{ matrix.arch }}
if: startsWith(github.ref, 'refs/tags/')
env:
linux_amd64: manylinux2014_x86_64
linux_arm64: manylinux2014_armv7l
windows_amd64: win_amd64
darwin_amd64: macosx_10_9_x86_64
darwin_arm64: macosx_11_0_arm64
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TWINE_PASSWORD }}
if: startsWith(github.ref, 'refs/tags/')