Skip to content

Commit

Permalink
Merge pull request #59 from deathbeam/follow-semver2
Browse files Browse the repository at this point in the history
Follow semver 2.0 for dev builds
  • Loading branch information
BeanCheeseBurrito authored Oct 25, 2024
2 parents e069012 + 3bcd68e commit 25eab70
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand All @@ -52,7 +53,7 @@ jobs:
shell: bash
run: |
if [ '${{ github.event.inputs.use-auto-generated-version }}' != 'false' ]; then
echo "FlecsVersionSuffix=-dev-$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_ENV
echo "FlecsVersionSuffix=build.$(git rev-list --count HEAD)" >> $GITHUB_ENV
fi
- name: Setup Osx Environment
Expand All @@ -61,7 +62,7 @@ jobs:
run: |
IOS_SDK=$(xcrun --sdk iphoneos --show-sdk-path)
IOS_SIMULATOR_SDK=$(xcrun --sdk iphonesimulator --show-sdk-path)
echo "IOS_SDK=$IOS_SDK" >> $GITHUB_ENV
echo "IOS_SIMULATOR_SDK=$IOS_SIMULATOR_SDK" >> $GITHUB_ENV
Expand Down Expand Up @@ -92,11 +93,11 @@ jobs:
shell: bash
run: |
if [ '${{ github.event.inputs.nuget-registry }}' == 'NuGet' ]; then
dotnet pack --property:FlecsVersionSuffix=$FlecsVersionSuffix -c Debug
dotnet pack --property:FlecsVersionSuffix=$FlecsVersionSuffix -c Release
dotnet pack --property:VersionSuffix=$FlecsVersionSuffix -c Debug
dotnet pack --property:VersionSuffix=$FlecsVersionSuffix -c Release
else
dotnet pack --property:FlecsVersionSuffix=$FlecsVersionSuffix --property:FlecsPackPdb=true -c Debug
dotnet pack --property:FlecsVersionSuffix=$FlecsVersionSuffix --property:FlecsPackPdb=true -c Release
dotnet pack --property:VersionSuffix=$FlecsVersionSuffix --property:FlecsPackPdb=true -c Debug
dotnet pack --property:VersionSuffix=$FlecsVersionSuffix --property:FlecsPackPdb=true -c Release
fi
- name: Upload Artifacts
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ dotnet nuget add source --name "flecs.net" --username "YOUR_GITHUB_USERNAME" --p
You can now reference any package from the [GitHub feed](https://github.com/BeanCheeseBurrito?tab=packages&repo_name=Flecs.NET)!

```console
dotnet add PROJECT package Flecs.NET.Release --version 4.0.2-dev-2024-10-20-03-23-34
dotnet add PROJECT package Flecs.NET.Release --version *-build.*
```

```xml
<Project Sdk="Microsoft.NET.Sdk">

Expand All @@ -111,7 +112,7 @@ dotnet add PROJECT package Flecs.NET.Release --version 4.0.2-dev-2024-10-20-03-2
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Flecs.NET.Debug" Version="4.0.2-dev-2024-10-20-03-23-34"/>
<PackageReference Include="Flecs.NET.Debug" Version="*-build.*"/>
</ItemGroup>

</Project>
Expand Down
5 changes: 0 additions & 5 deletions src/Directory.Build.targets

This file was deleted.

2 changes: 1 addition & 1 deletion src/Flecs.NET.Bindings/Flecs.NET.Bindings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<IsPackable>true</IsPackable>
<IncludeContentInPack>true</IncludeContentInPack>

<Version>4.0.2</Version>
<VersionPrefix>4.0.2</VersionPrefix>
<Title Condition="'$(Configuration)' == 'Debug'">Flecs.NET.Bindings.Debug</Title>
<Title Condition="'$(Configuration)' == 'Release'">Flecs.NET.Bindings.Release</Title>
<Authors>BeanCheeseBurrito</Authors>
Expand Down
2 changes: 1 addition & 1 deletion src/Flecs.NET.Native/Flecs.NET.Native.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>

<Version>4.0.2</Version>
<VersionPrefix>4.0.2</VersionPrefix>
<Title Condition="'$(Configuration)' == 'Debug'">Flecs.NET.Native.Debug</Title>
<Title Condition="'$(Configuration)' == 'Release'">Flecs.NET.Native.Release</Title>
<Authors>BeanCheeseBurrito</Authors>
Expand Down
4 changes: 2 additions & 2 deletions src/Flecs.NET/Flecs.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<IsPackable>true</IsPackable>
<IncludeContentInPack>true</IncludeContentInPack>

<Version>4.0.2</Version>
<VersionPrefix>4.0.2</VersionPrefix>
<Title Condition="'$(Configuration)' == 'Debug'">Flecs.NET.Debug</Title>
<Title Condition="'$(Configuration)' == 'Release'">Flecs.NET.Release</Title>
<Authors>BeanCheeseBurrito</Authors>
Expand All @@ -41,7 +41,7 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>

Expand Down

0 comments on commit 25eab70

Please sign in to comment.