mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
ignore instead of spam cli
This commit is contained in:
18
.github/workflows/backend.yml
vendored
18
.github/workflows/backend.yml
vendored
@@ -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 }}*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user