ignore instead of spam cli

This commit is contained in:
2025-07-27 13:46:39 +02:00
parent b8018363c8
commit 841a569da7
2 changed files with 15 additions and 5 deletions

View File

@@ -13,6 +13,11 @@ on:
jobs:
build-backend:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v3
@@ -47,12 +52,17 @@ jobs:
--openapiv2_out=grpc-backend/gen/swagger \
grpc-backend/proto/osu_music.proto
- name: Build osu-server binary
- name: Build osu-server binary for ${{ matrix.goos }}/ ${{ matrix.goarch }}
working-directory: grpc-backend
run: go build -o osu-server .
run: |
output=osu-music-server-${{ matrix.goos }}-${{ matrix.goarch }}
if [ "${{ matrix.goos }}" = "windows" ]; then
output=${output}.exe
fi
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o $output .
- name: Upload osu-server binary artifact
uses: actions/upload-artifact@v4
with:
name: osu-server
path: grpc-backend/osu-server
name: osu-server-${{ matrix.goos }}-${{ matrix.goarch }}
path: grpc-backend/osu-music-server-${{ matrix.goos }}-${{ matrix.goarch }}*

View File

@@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS Beatmap (
Tags TEXT DEFAULT '',
LastPlayed INTEGER DEFAULT 0,
Folder TEXT DEFAULT 'Unknown Folder',
UNIQUE (Artist, Title, MD5Hash, Difficulty, Folder)
UNIQUE (Artist, Title, MD5Hash, Difficulty, Folder) ON CONFLICT IGNORE
);
CREATE INDEX IF NOT EXISTS idx_beatmap_md5hash ON Beatmap(MD5Hash);