Skip to content

Commit

Permalink
macos-test
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed May 13, 2024
1 parent 4cc41dc commit 6da6400
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: release

on:
# push:
Expand All @@ -9,11 +9,8 @@ on:

jobs:

# TODO: add more OS
# TODO: goreleaser

release-linux-binary:
runs-on: ubuntu-latest
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

Expand All @@ -26,8 +23,27 @@ jobs:
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v1'
args: build --clean
args: build --clean --config=.goreleaser-darwin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# linux:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Set up Go
# uses: actions/setup-go@v5
# with:
# go-version: '1.20'
#
# - name: Run GoReleaser
# uses: goreleaser/goreleaser-action@v5
# with:
# distribution: goreleaser
# args: build --clean --config=.goreleaser-linux.yml
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# windows:
# runs-on: windows-latest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
.idea/
dist
10 changes: 6 additions & 4 deletions .goreleaser.yml → .goreleaser-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ version: 1

before:
hooks:
- go mod tidy
# - go generate ./...
# - go mod tidy

builds:
- goos:
- linux
- windows
# - linux
# - windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1

archives:
- format: tar.gz
Expand Down

0 comments on commit 6da6400

Please sign in to comment.