Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 4903f94

Browse files
committed
Release v2.0.0-rc1 - The Great Rewrite
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.
1 parent 00b85fc commit 4903f94

29 files changed

+945
-1398
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
with:
2424
go-version: 1.17
2525

26-
- name: Cache Golang modules
27-
uses: actions/cache@v1
26+
- name: Load Golang modules from cache
27+
uses: martijnhols/actions-cache/restore@v3
2828
with:
2929
path: ~/go/pkg/mod
3030
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -36,8 +36,15 @@ jobs:
3636
if: success() && startsWith(github.ref, 'refs/tags/')
3737
with:
3838
distribution: goreleaser
39-
version: latest
39+
version: 1.4.1
4040
args: release --rm-dist
4141
env:
4242
LDFLAGS: "-X github.com/lflare/mdathome-golang/internal/mdathome.ClientVersion=${{ github.ref_name }} -X mdathome.Build=${{ github.sha }}"
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Save Golang modules to cache
46+
if: always()
47+
uses: martijnhols/actions-cache/save@v3
48+
with:
49+
path: ~/go/pkg/mod
50+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Ignore build directory & single build artifact
22
build/
33
mdathome-golang
4+
5+
# Runtime configuration
6+
config.toml
7+
settings.json

.goreleaser.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ before:
55
hooks:
66
- go mod download
77

8+
release:
9+
prerelease: auto
10+
811
builds:
912
- binary: mdathome
10-
main: cmd/mdathome/main.go
13+
main: main.go
1114
env:
1215
- CGO_ENABLED=0
1316
- GO111MODULE=on
@@ -19,44 +22,20 @@ builds:
1922
post:
2023
- /bin/sh -c "upx -q '{{.Path}}' || true"
2124
goos:
22-
- aix
23-
- android
2425
- darwin
25-
- dragonfly
26-
- freebsd
27-
- illumos
28-
- js
2926
- linux
30-
- netbsd
31-
- openbsd
32-
- plan9
33-
- solaris
3427
- windows
28+
- freebsd
3529
goarch:
36-
- 386
3730
- amd64
3831
- arm
3932
- arm64
40-
- ppc64
41-
- ppc64le
42-
- mips
43-
- mipsle
44-
- mips64
45-
- mips64le
46-
- riscv64
4733
- s390x
48-
- wasm
34+
- ppc64le
4935
goarm:
5036
- 5
5137
- 6
5238
- 7
53-
gomips:
54-
- hardfloat
55-
- softfloat
56-
ignore:
57-
- goos: android
58-
- goos: js
59-
- goos: plan9
6039

6140
archives:
6241
- format: binary

0 commit comments

Comments
 (0)