Skip to content

v1.0.7

v1.0.7 #8

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Check out code
uses: actions/checkout@v4
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -v -o cohere2openai-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: cohere2openai-${{ matrix.goos }}-${{ matrix.goarch }}
path: cohere2openai-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Artifact to Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./cohere2openai-${{ matrix.goos }}-${{ matrix.goarch }}