-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update actions workflows (#3)
* build: update workflow and goreleaser * chore: update FUNDING.yml * build: update ignores * build: update Makefile * build: update goreleaser actions * build: update goreleaser config * build: update dep go-set * build: add linkinfo_freebsd.go
- Loading branch information
Showing
8 changed files
with
166 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
github: l3uddz | ||
github: | ||
- l3uddz | ||
- zze0s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,86 @@ | ||
# https://goreleaser.com | ||
version: 2 | ||
project_name: tqm | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
# Build | ||
builds: | ||
- | ||
- id: tqm | ||
env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- -s -w | ||
- -X "github.com/autobrr/tqm/runtime.Version={{ .Version }}" | ||
- -X "github.com/autobrr/tqm/runtime.GitCommit={{ .ShortCommit }}" | ||
- -X "github.com/autobrr/tqm/runtime.Timestamp={{ .Timestamp }}" | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
- darwin | ||
- freebsd | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
ldflags: | ||
- -s -w | ||
- -X "github.com/autobrr/tqm/runtime.Version={{ .Version }}" | ||
- -X "github.com/autobrr/tqm/runtime.GitCommit={{ .ShortCommit }}" | ||
- -X "github.com/autobrr/tqm/runtime.Timestamp={{ .Timestamp }}" | ||
flags: | ||
- -trimpath | ||
goarm: | ||
- 6 | ||
ignore: | ||
- goos: windows | ||
goarch: arm | ||
- goos: windows | ||
goarch: arm64 | ||
- goos: darwin | ||
goarch: arm | ||
- goos: freebsd | ||
goarch: arm | ||
- goos: freebsd | ||
goarch: arm64 | ||
main: main.go | ||
binary: tqm | ||
|
||
# MacOS Universal Binaries | ||
universal_binaries: | ||
- | ||
replace: true | ||
|
||
# Archive | ||
archives: | ||
- | ||
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
format: "binary" | ||
- id: tqm | ||
builds: | ||
- tqm | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# Checksum | ||
checksum: | ||
name_template: "checksums.txt" | ||
algorithm: sha512 | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' | ||
|
||
# Snapshot | ||
snapshot: | ||
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}" | ||
version_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}" | ||
|
||
release: | ||
prerelease: auto | ||
footer: | | ||
**Full Changelog**: https://github.com/autobrr/tqm/compare/{{ .PreviousTag }}...{{ .Tag }} | ||
## What to do next? | ||
- Read the [documentation](https://autobrr.com) | ||
- Join our [Discord server](https://discord.gg/WQ2eUycxyT) | ||
# Changelog | ||
changelog: | ||
sort: asc | ||
use: github | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
- "^Merge branch" | ||
- Merge pull request | ||
- Merge remote-tracking branch | ||
- Merge branch | ||
groups: | ||
- title: 'New Features' | ||
regexp: "^.*feat[(\\w)]*:+.*$" | ||
order: 0 | ||
- title: 'Bug fixes' | ||
regexp: "^.*fix[(\\w)]*:+.*$" | ||
order: 10 | ||
- title: Other work | ||
order: 999 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package hardlinkfilemap | ||
|
||
import ( | ||
"errors" | ||
"os" | ||
"strconv" | ||
"syscall" | ||
) | ||
|
||
func LinkInfo(fi os.FileInfo, _ string) (string, uint64, error) { | ||
sys, ok := fi.Sys().(*syscall.Stat_t) | ||
if !ok { | ||
return "", 0, errors.New("failed to get file identifier") | ||
} | ||
|
||
return strconv.FormatUint(sys.Dev, 10) + "|" + strconv.FormatUint(sys.Ino, 10), | ||
uint64(sys.Nlink), | ||
nil | ||
} |