Skip to content

Commit 0be5c33

Browse files
git init
Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com>
1 parent 3a138bc commit 0be5c33

6 files changed

Lines changed: 58 additions & 51 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
os: [macos-latest, windows-latest, ubuntu-latest]
13+
os: [ macos-latest, windows-latest, ubuntu-latest ]
1414
fail-fast: false
1515

1616
runs-on: ${{ matrix.os }}
@@ -24,9 +24,12 @@ jobs:
2424
dotnet-version: "10.0.x"
2525

2626
- name: Package NuGet
27-
run: dotnet pack Spice86.DataGrid.slnx --include-symbols --include-source --configuration Release -p:NoWarn=1591
27+
run: dotnet pack Spice86.DataGrid.slnx --include-symbols --include-source
28+
--configuration Release -p:NoWarn=1591
2829

2930
- name: Upload NuGet Spice86.DataGrid
3031
if: github.ref == 'refs/heads/main' && matrix.os == 'ubuntu-latest'
3132
working-directory: ./src/Spice86.DataGrid/Avalonia.Controls.DataGrid/bin/Release
32-
run: dotnet nuget push Spice86.DataGrid.*.nupkg --api-key "${{ secrets.NUGET_API_KEY }}" --source "https://api.nuget.org/v3/index.json" --skip-duplicate
33+
run: dotnet nuget push Spice86.DataGrid.*.nupkg --api-key "${{
34+
secrets.NUGET_API_KEY }}" --source
35+
"https://api.nuget.org/v3/index.json" --skip-duplicate

.github/workflows/pr.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
name: Run tests
22

33
# Trigger the workflow on PRs
4-
on:
5-
pull_request
4+
on: pull_request
65

76
jobs:
87
build:
98

109
strategy:
1110
matrix:
12-
os: [macos-latest, windows-latest, ubuntu-latest]
11+
os: [ macos-latest, windows-latest, ubuntu-latest ]
1312
fail-fast: false
14-
13+
1514
runs-on: ${{ matrix.os }}
1615

1716
steps:
18-
- uses: actions/checkout@v1
19-
20-
- name: Setup .NET
21-
uses: actions/setup-dotnet@v1
22-
with:
23-
dotnet-version: '10.0.x'
17+
- uses: actions/checkout@v1
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: "10.0.x"
2423

25-
- name: Build with dotnet
26-
run: dotnet build Spice86.DataGrid.slnx --configuration Release
24+
- name: Build with dotnet
25+
run: dotnet build Spice86.DataGrid.slnx --configuration Release

.github/workflows/prerelease.yml

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
11
name: pre-release
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches:
6+
- main
77

88
permissions:
9-
contents: read
10-
packages: write
9+
contents: read
10+
packages: write
1111

1212
jobs:
13-
prerelease:
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Determine prerelease version
20-
run: |
21-
COMMIT_SHA=$(git rev-parse --short HEAD)
22-
echo "PRERELEASE_VERSION=0.1.0-${COMMIT_SHA}" >> $GITHUB_ENV
23-
24-
- name: Setup .NET
25-
uses: actions/setup-dotnet@v4
26-
with:
27-
dotnet-version: 10.0.x
28-
29-
- name: Pack prerelease NuGet package
30-
run: dotnet pack ./src/Spice86.DataGrid/Avalonia.Controls.DataGrid/Avalonia.Controls.DataGrid.csproj --configuration Release --include-symbols --include-source -p:PackageVersion=${PRERELEASE_VERSION} -p:SymbolPackageFormat=snupkg -p:NoWarn=1591%3BNU5104%3BNU1507
31-
32-
- name: Publish prerelease package to GitHub Packages
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
PRERELEASE_VERSION: ${{ env.PRERELEASE_VERSION }}
36-
run: |
37-
dotnet nuget push ./src/Spice86.DataGrid/Avalonia.Controls.DataGrid/bin/Release/Spice86.DataGrid.${PRERELEASE_VERSION}.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
13+
prerelease:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Determine prerelease version
20+
run: |
21+
COMMIT_SHA=$(git rev-parse --short HEAD)
22+
echo "PRERELEASE_VERSION=0.1.0-${COMMIT_SHA}" >> $GITHUB_ENV
23+
24+
- name: Setup .NET
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
dotnet-version: 10.0.x
28+
29+
- name: Pack prerelease NuGet package
30+
run: dotnet pack
31+
./src/Spice86.DataGrid/Avalonia.Controls.DataGrid/Avalonia.Controls.DataGrid.csproj
32+
--configuration Release --include-symbols --include-source
33+
-p:PackageVersion=${PRERELEASE_VERSION}
34+
-p:SymbolPackageFormat=snupkg -p:NoWarn=1591%3BNU5104%3BNU1507
35+
36+
- name: Publish prerelease package to GitHub Packages
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
PRERELEASE_VERSION: ${{ env.PRERELEASE_VERSION }}
40+
run: |
41+
dotnet nuget push ./src/Spice86.DataGrid/Avalonia.Controls.DataGrid/bin/Release/Spice86.DataGrid.${PRERELEASE_VERSION}.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Spice86.DataGrid
2+
23
An internal DataGrid for AvaloniaUI, forked from the last FLOSS v11 version and updated for Avalonia v12.
34

45
This repository ships a single NuGet package, `Spice86.DataGrid`, that contains both the DataGrid controls and the Semi DataGrid theme in the same assembly.

src/Spice86.DataGrid/Avalonia.Controls.DataGrid/DataGridSemiTheme.axaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Styles
2-
x:Class="Spice86.DataGrid.DataGridSemiTheme"
3-
xmlns="https://github.com/avaloniaui"
4-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2+
x:Class="Spice86.DataGrid.DataGridSemiTheme"
3+
xmlns="https://github.com/avaloniaui"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
55
<Styles.Resources>
66
<ResourceDictionary>
77
<ResourceDictionary.ThemeDictionaries>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
2-
<ItemGroup>
3-
<PackageVersion Include="Avalonia" Version="12.0.2" />
4-
</ItemGroup>
2+
<ItemGroup>
3+
<PackageVersion Include="Avalonia" Version="12.0.2" />
4+
</ItemGroup>
55
</Project>

0 commit comments

Comments
 (0)