Skip to content

Commit

Permalink
build: attempt to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 17, 2024
1 parent 308173c commit c171269
Show file tree
Hide file tree
Showing 55 changed files with 347 additions and 9,210 deletions.
12 changes: 11 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
## https://github.com/alexkaratarakis/gitattributes/blob/master/CSharp.gitattributes
# Auto detect text files and perform LF normalization
* text=auto
* text=auto

*.cs text diff=csharp
*.cshtml text diff=html
*.csx text diff=csharp
*.sln text eol=crlf
*.csproj text eol=crlf


## Repository specific attributes
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Bug Report
description: Create a report to help us improve
title: "[Bug]: "
labels: ["bug"]
body:
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior.
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.

- type: input
attributes:
label: Platform
description: The platform you are using. (e.g. Windows 10, macOS 10.15, Ubuntu 20.04)

- type: input
attributes:
label: Version
description: The version of the application you are using. (e.g. 1.0.0)

- type: textarea
attributes:
label: Additional context
description: Add any other context about the problem here.
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Feature request
description: Suggest an idea for this project
title: "[Feature]: "
labels: ["enhancement"]
body:
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true

- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.

- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Thank you for your contribution to the repository.
Before submitting this PR, please make sure:

- [ ] Your code builds clean without any errors or warnings
- [ ] Your code follows the code style
- [ ] Your code follows the code style of [Common C# code conventions](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions)
- [ ] You have tested all functions
- [ ] You have not used code without license
- [ ] You have added statement for third-party code
75 changes: 62 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,76 @@
on:
pull_request:
push:
pull_request:
workflow_dispatch:

permissions:
contents: write

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
runtime:
- linux-arm
- linux-arm64
- linux-x64
- linux-musl-arm
- linux-musl-arm64
- linux-musl-x64
- osx-arm64
- osx-x64
- win-arm
- win-arm64
- win-x64
- win-x86
include:
- runs-on: ubuntu-latest
- runs-on: macos-latest
runtime: osx-x64
- runs-on: macos-latest
runtime: osx-arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 6.0.x

- name: Build
run: |
dotnet publish src/LipUI.sln -c Release
- run: |
dotnet build src/LipUI/LipUI.csproj -c Release -o bin \
--sc false -r ${{ matrix.runtime }} -p:DebugType=none \
-p:PublishSingleFile=true
- uses: actions/upload-artifact@v3
with:
name: net7.0-windows-win10-x64
path: |
src/LipUI/bin/Release/net7.0-windows10.0.19041.0/win10-x64/publish/
name: LipUI-${{ matrix.runtime }}-${{ github.sha }}
path: bin

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x

- run: dotnet format --verify-no-changes src/LipUI

- run: dotnet format --verify-no-changes src/LipUI.Tests

test:
strategy:
matrix:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- run: |
dotnet test src/LipUI.Tests/LipUI.Tests.csproj
56 changes: 0 additions & 56 deletions .github/workflows/publish.yml

This file was deleted.

Loading

0 comments on commit c171269

Please sign in to comment.