Skip to content

Commit

Permalink
Release v2.0.0-rc1 - The Great Rewrite
Browse files Browse the repository at this point in the history
This release kicks off the first of many changes to refactor the client.
It is not production ready, but it has been tested to a certain extent
in production.
  • Loading branch information
lflare committed Feb 28, 2022
1 parent 00b85fc commit 4903f94
Show file tree
Hide file tree
Showing 29 changed files with 945 additions and 1,398 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
with:
go-version: 1.17

- name: Cache Golang modules
uses: actions/cache@v1
- name: Load Golang modules from cache
uses: martijnhols/actions-cache/restore@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -36,8 +36,15 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
version: latest
version: 1.4.1
args: release --rm-dist
env:
LDFLAGS: "-X github.com/lflare/mdathome-golang/internal/mdathome.ClientVersion=${{ github.ref_name }} -X mdathome.Build=${{ github.sha }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Save Golang modules to cache
if: always()
uses: martijnhols/actions-cache/save@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Ignore build directory & single build artifact
build/
mdathome-golang

# Runtime configuration
config.toml
settings.json
33 changes: 6 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ before:
hooks:
- go mod download

release:
prerelease: auto

builds:
- binary: mdathome
main: cmd/mdathome/main.go
main: main.go
env:
- CGO_ENABLED=0
- GO111MODULE=on
Expand All @@ -19,44 +22,20 @@ builds:
post:
- /bin/sh -c "upx -q '{{.Path}}' || true"
goos:
- aix
- android
- darwin
- dragonfly
- freebsd
- illumos
- js
- linux
- netbsd
- openbsd
- plan9
- solaris
- windows
- freebsd
goarch:
- 386
- amd64
- arm
- arm64
- ppc64
- ppc64le
- mips
- mipsle
- mips64
- mips64le
- riscv64
- s390x
- wasm
- ppc64le
goarm:
- 5
- 6
- 7
gomips:
- hardfloat
- softfloat
ignore:
- goos: android
- goos: js
- goos: plan9

archives:
- format: binary
Expand Down
Loading

0 comments on commit 4903f94

Please sign in to comment.