Skip to content

Commit

Permalink
seems like you cant maniuplate github strings. oh well
Browse files Browse the repository at this point in the history
  • Loading branch information
sermuns committed Jan 19, 2025
1 parent 88ca3e9 commit 1d36187
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Based on https://github.com/badboy/mdbook-toc/blob/main/.github/workflows/deploy.yml

name: Build and release
name: Release binaries

on:
push:
Expand All @@ -11,7 +11,7 @@ on:

jobs:
github_build:
name: Build release binaries
name: Build binaries
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -54,11 +54,13 @@ jobs:
mkdir -p dist
GOOS=windows GOARCH=amd64 go build -o dist/${REPO_NAME}-${{ matrix.target }}.exe
- name: Build (Other Targets)
- name: Build | Cross-compile (Other Targets)
if: matrix.target != 'x86_64-pc-windows-msvc'
run: |
mkdir -p dist
GOOS=${{ matrix.target%/* }} GOARCH=${{ matrix.target#*/ }} go build -o dist/${REPO_NAME}-${{ matrix.target }}
OS=$(echo "${{ matrix.target }}" | cut -d'-' -f1)
ARCH=$(echo "${{ matrix.target }}" | cut -d'-' -f2)
GOOS=$OS GOARCH=$ARCH go build -o dist/${REPO_NAME}-${{ matrix.target }}
- name: Post Setup | Strip binaries (-nix)
if: matrix.os != 'windows-latest'
Expand All @@ -71,7 +73,6 @@ jobs:
name: ${{ github.repository }}-${{ matrix.target }}
path: dist/${REPO_NAME}-${{ matrix.target }}${{ matrix.ext }}

# Create GitHub release with built binaries
github_release:
name: Create GitHub Release
needs: github_build
Expand Down

0 comments on commit 1d36187

Please sign in to comment.