rebase
This commit is contained in:
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
github: [MoeCinnamo]
|
||||
custom: ["https://afdian.com/a/MoeCinnamo"]
|
||||
60
.github/ISSUE_TEMPLATE/bug.yml
vendored
Normal file
60
.github/ISSUE_TEMPLATE/bug.yml
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
name: 🐞 Report error
|
||||
description: Report an error (bug), please first check the FAQ and search the Issue list for the issue you want to raise.
|
||||
title: "[Bug] "
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: check-answer
|
||||
attributes:
|
||||
label: Solution check
|
||||
description: Please ensure that you have completed all of the following operations.
|
||||
options:
|
||||
- label: I have searched [Issues](https://github.com/OmniX-Space/MeowBox-Core/issues).However, no similar issues were found.
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected-behavior
|
||||
attributes:
|
||||
label: Expected behavior
|
||||
description: A clear and concise description of what is expected to happen
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual-behavior
|
||||
attributes:
|
||||
label: Actual behavior
|
||||
description: A clear and concise description of what actually happened.
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: MeowBox-Core version
|
||||
description: What version of MeowBox-Core are you using?
|
||||
placeholder: e.g. v0.0.2
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: last-known-working-version
|
||||
attributes:
|
||||
label: The final normal version
|
||||
description: If so, please fill in the final normal version here.
|
||||
placeholder: e.g. v0.0.1
|
||||
- type: input
|
||||
id: operating-system-version
|
||||
attributes:
|
||||
label: Operating system version
|
||||
description: |
|
||||
What version of operating system are you using?
|
||||
|
||||
On macOS, click on "Apple Menu > About This Machine";
|
||||
|
||||
On Linux, execute the `lsc_release` or `uname - a` command;
|
||||
|
||||
On Windows, click the Start button > Settings > System > About.
|
||||
placeholder: "e.g. macOS 11.2.3, Windows 10 20H2, Debian 12.1.0"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: Additional information
|
||||
description: If your issue needs further explanation or you are facing a difficult-to-reproduce issue, please add more information here. (You can directly drag and drop images or videos into the text box)
|
||||
36
.github/ISSUE_TEMPLATE/feature.yml
vendored
Normal file
36
.github/ISSUE_TEMPLATE/feature.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: ✨ Function request
|
||||
description: To come up with an idea for this project, please first review the frequently asked questions and search the Issue list to see if there are any issues you want to raise.
|
||||
title: "[Feature] "
|
||||
body:
|
||||
- type: checkboxes
|
||||
id: check-answer
|
||||
attributes:
|
||||
label: Solution check
|
||||
description: Please ensure that you have completed all of the following operations.
|
||||
options:
|
||||
- label: I have searched [Issues](https://github.com/OmniX-Space/MeowBox-Core/issues).However, no similar issues were found.
|
||||
required: true
|
||||
- type: textarea
|
||||
id: problem-description
|
||||
attributes:
|
||||
label: Problem description
|
||||
description: Please add a clear and concise description of the problem you want to solve.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: proposed-solution
|
||||
attributes:
|
||||
label: Describe the solution you want
|
||||
description: Briefly and clearly describe what you are about to happen
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: alternatives-considered
|
||||
attributes:
|
||||
label: Describe the alternative solutions you have considered
|
||||
description: A concise and clear description of all alternative solutions or features you have considered
|
||||
- type: textarea
|
||||
id: additional-information
|
||||
attributes:
|
||||
label: Additional information
|
||||
description: If your question requires further explanation or if you would like to express other content, please add more information here. (Simply drag the image/video to the editing box to add it)
|
||||
120
.github/workflows/test-and-build.yml
vendored
Normal file
120
.github/workflows/test-and-build.yml
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
name: Test and Build Project
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
build_type:
|
||||
description: "Build type: version or pre"
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- version
|
||||
- pre
|
||||
version_number:
|
||||
description: "Version number"
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
permissions:
|
||||
contents: write
|
||||
actions: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: v0.0.2-dev
|
||||
fetch-depth: 0
|
||||
- name: Test code
|
||||
run: |
|
||||
echo "Testing code"
|
||||
- name: Clean build
|
||||
run: |
|
||||
echo "Cleaning build"
|
||||
rm -rf MeowEmbeddedMusicServer-*
|
||||
- name: Build version
|
||||
if: ${{ github.event.inputs.build_type == 'version' }}
|
||||
run: |
|
||||
echo "Building version ${{ github.event.inputs.version_number }}"
|
||||
go mod tidy
|
||||
echo "Build linux i386 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-i386 . && upx -9 MeowEmbeddedMusicServer-Linux-i386
|
||||
echo "Build linux amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-amd64 . && upx -9 MeowEmbeddedMusicServer-Linux-amd64
|
||||
echo "Build linux arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-arm64 . && upx -9 MeowEmbeddedMusicServer-Linux-arm64
|
||||
echo "Build windows i386 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-i386.exe . && upx -9 MeowEmbeddedMusicServer-Windows-i386.exe
|
||||
echo "Build windows amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-amd64.exe . && upx -9 MeowEmbeddedMusicServer-Windows-amd64.exe
|
||||
echo "Build windows arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-arm64.exe .
|
||||
echo "Build darwin amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Darwin-amd64 .
|
||||
echo "Build darwin arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Darwin-arm64 .
|
||||
- name: Build pre-release
|
||||
if: ${{ github.event.inputs.build_type == 'pre' }}
|
||||
run: |
|
||||
echo "Building pre-release ${{ github.event.inputs.version_number }}"
|
||||
go mod tidy
|
||||
echo "Build linux i386 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-i386 . && upx -9 MeowEmbeddedMusicServer-Linux-i386
|
||||
echo "Build linux amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-amd64 . && upx -9 MeowEmbeddedMusicServer-Linux-amd64
|
||||
echo "Build linux arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Linux-arm64 . && upx -9 MeowEmbeddedMusicServer-Linux-arm64
|
||||
echo "Build windows i386 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-i386.exe . && upx -9 MeowEmbeddedMusicServer-Windows-i386.exe
|
||||
echo "Build windows amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-amd64.exe . && upx -9 MeowEmbeddedMusicServer-Windows-amd64.exe
|
||||
echo "Build windows arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Windows-arm64.exe .
|
||||
echo "Build darwin amd64 binary"
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Darwin-amd64 .
|
||||
echo "Build darwin arm64 binary"
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -trimpath -o MeowEmbeddedMusicServer-Darwin-arm64 .
|
||||
- name: Get latest tag
|
||||
id: get_latest_tag
|
||||
run: |
|
||||
git fetch --tags
|
||||
LATEST_TAG=$(git tag --sort=-refname | head -n 1)
|
||||
echo "Latest tag found: $LATEST_TAG"
|
||||
echo "previous_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
|
||||
- name: Upload binaries
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ github.event.inputs.version_number }}
|
||||
name: ${{ github.event.inputs.version_number }}
|
||||
body: |
|
||||
### Build Information
|
||||
- Branch: v0.0.2-dev
|
||||
- Commit: ${{ github.sha }}
|
||||
|
||||
### Binaries
|
||||
- Linux i386
|
||||
- Linux amd64
|
||||
- Linux arm64
|
||||
- Windows i386
|
||||
- Windows amd64
|
||||
- Windows arm64
|
||||
- macOS amd64
|
||||
- macOS arm64
|
||||
|
||||
**Full Changelog**: https://github.com/OmniX-Space/MeowBox-Core/compare/${{ steps.get_latest_tag.outputs.previous_tag }}...${{ github.sha }}
|
||||
files: |
|
||||
MeowEmbeddedMusicServer-Linux-i386
|
||||
MeowEmbeddedMusicServer-Linux-amd64
|
||||
MeowEmbeddedMusicServer-Linux-arm64
|
||||
MeowEmbeddedMusicServer-Windows-i386.exe
|
||||
MeowEmbeddedMusicServer-Windows-amd64.exe
|
||||
MeowEmbeddedMusicServer-Windows-arm64.exe
|
||||
MeowEmbeddedMusicServer-Darwin-amd64
|
||||
MeowEmbeddedMusicServer-Darwin-arm64
|
||||
prerelease: ${{ github.event.inputs.build_type == 'pre' }}
|
||||
make_latest: ${{ github.event.inputs.build_type != 'pre' }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
|
||||
continue-on-error: true
|
||||
Reference in New Issue
Block a user