Skip to content

test: build windows #74

test: build windows

test: build windows #74

Workflow file for this run

name: CI Checks
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.22"
- name: Build
run: make build
- name: Run tests
run: make test
- name: Run linter
run: make lint
build_release_windows:
env:
GOOS: windows
GOARCH: amd64
TARGET: windows-amd64
RELEASE_TAG: v0.3.2
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.22"
- name: Create artifacts for linux
run: sh ci/script.sh
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ergo-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz
asset_name: ergo-${{ env.RELEASE_TAG }}-${{ env.TARGET }}.tar.gz
tag: ${{ github.ref }}
overwrite: true