Upgrade TagLib 2.0.2, GoReleaser 2.2.0 (#3217)
* Upgrade ci-goreleaser * Fix tests * Fix taglib lib path in macOS
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
go-lint:
|
go-lint:
|
||||||
name: Lint Go code
|
name: Lint Go code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: deluan/ci-goreleaser:1.22.3-1
|
container: deluan/ci-goreleaser:1.23.0-1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
go:
|
go:
|
||||||
name: Test Go code
|
name: Test Go code
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: deluan/ci-goreleaser:1.22.3-1
|
container: deluan/ci-goreleaser:1.23.0-1
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -104,7 +104,7 @@ jobs:
|
|||||||
name: Build binaries
|
name: Build binaries
|
||||||
needs: [js, go, go-lint]
|
needs: [js, go, go-lint]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: deluan/ci-goreleaser:1.22.3-1
|
container: deluan/ci-goreleaser:1.23.0-1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
# GoReleaser config
|
# GoReleaser config
|
||||||
project_name: navidrome
|
project_name: navidrome
|
||||||
|
version: 2
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- id: navidrome_linux_amd64
|
- id: navidrome_linux_amd64
|
||||||
@@ -121,7 +122,7 @@ checksum:
|
|||||||
name_template: "{{ .ProjectName }}_checksums.txt"
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{ .Tag }}-SNAPSHOT"
|
version_template: "{{ .Tag }}-SNAPSHOT"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ GIT_SHA=source_archive
|
|||||||
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
|
GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CI_RELEASER_VERSION=1.22.3-1 ## https://github.com/navidrome/ci-goreleaser
|
CI_RELEASER_VERSION=1.23.0-1 ## https://github.com/navidrome/ci-goreleaser
|
||||||
|
|
||||||
UI_SRC_FILES := $(shell find ui -type f -not -path "ui/build/*" -not -path "ui/node_modules/*")
|
UI_SRC_FILES := $(shell find ui -type f -not -path "ui/build/*" -not -path "ui/node_modules/*")
|
||||||
|
|
||||||
|
|||||||
@@ -95,10 +95,10 @@ var _ = Describe("Extractor", func() {
|
|||||||
|
|
||||||
m := mds[file]
|
m := mds[file]
|
||||||
|
|
||||||
Expect(m).To(HaveKeyWithValue("replaygain_album_gain", []string{albumGain}))
|
Expect(m["replaygain_album_gain"]).To(ContainElement(albumGain))
|
||||||
Expect(m).To(HaveKeyWithValue("replaygain_album_peak", []string{albumPeak}))
|
Expect(m["replaygain_album_peak"]).To(ContainElement(albumPeak))
|
||||||
Expect(m).To(HaveKeyWithValue("replaygain_track_gain", []string{trackGain}))
|
Expect(m["replaygain_track_gain"]).To(ContainElement(trackGain))
|
||||||
Expect(m).To(HaveKeyWithValue("replaygain_track_peak", []string{trackPeak}))
|
Expect(m["replaygain_track_peak"]).To(ContainElement(trackPeak))
|
||||||
|
|
||||||
Expect(m).To(HaveKeyWithValue("title", []string{"Title", "Title"}))
|
Expect(m).To(HaveKeyWithValue("title", []string{"Title", "Title"}))
|
||||||
Expect(m).To(HaveKeyWithValue("album", []string{"Album", "Album"}))
|
Expect(m).To(HaveKeyWithValue("album", []string{"Album", "Album"}))
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ package taglib
|
|||||||
#cgo pkg-config: taglib
|
#cgo pkg-config: taglib
|
||||||
#cgo illumos LDFLAGS: -lstdc++ -lsendfile
|
#cgo illumos LDFLAGS: -lstdc++ -lsendfile
|
||||||
#cgo linux darwin CXXFLAGS: -std=c++11
|
#cgo linux darwin CXXFLAGS: -std=c++11
|
||||||
|
#cgo darwin LDFLAGS: -L/opt/homebrew/opt/taglib/lib
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user