Skip to content

Commit f553476

Browse files
Add branding and packaging details
1 parent 89a2d11 commit f553476

File tree

5 files changed

+29
-12
lines changed

5 files changed

+29
-12
lines changed

.github/workflows/code-coverage.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
schedule:
55
# 2AM every Tuesday/Thursday
66
- cron: "0 2 * * 2,4"
7+
78
jobs:
89
Build:
910
strategy:
@@ -14,7 +15,7 @@ jobs:
1415
runtime: -x64
1516
codecov: true
1617

17-
runs-on: ${{matrix.options.os}}
18+
runs-on: ${{ matrix.options.os }}
1819

1920
steps:
2021
- name: Git Config
@@ -29,16 +30,21 @@ jobs:
2930
fetch-depth: 0
3031
submodules: recursive
3132

32-
# See https://github.com/actions/checkout/issues/165#issuecomment-657673315
33-
- name: Git Create LFS FileList
34-
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
33+
# Deterministic list of LFS object IDs, then compute a portable key:
34+
# - `git lfs ls-files -l` lists all tracked LFS objects with their SHA-256
35+
# - `awk '{print $1}'` extracts just the SHA field
36+
# - `sort` sorts in byte order (hex hashes sort the same everywhere)
37+
# This ensures the file content is identical regardless of OS or locale
38+
- name: Git Create LFS id list
39+
shell: bash
40+
run: git lfs ls-files -l | awk '{print $1}' | sort > .lfs-assets-id
3541

3642
- name: Git Setup LFS Cache
3743
uses: actions/cache@v4
3844
id: lfs-cache
3945
with:
4046
path: .git/lfs
41-
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
47+
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
4248

4349
- name: Git Pull LFS
4450
run: git lfs pull
@@ -62,13 +68,13 @@ jobs:
6268
6369
- name: DotNet Build
6470
shell: pwsh
65-
run: ./ci-build.ps1 "${{matrix.options.framework}}"
71+
run: ./ci-build.ps1 "${{ matrix.options.framework }}"
6672
env:
6773
SIXLABORS_TESTING: True
6874

6975
- name: DotNet Test
7076
shell: pwsh
71-
run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
77+
run: ./ci-test.ps1 "${{ matrix.options.os }}" "${{ matrix.options.framework }}" "${{ matrix.options.runtime }}" "${{ matrix.options.codecov }}"
7278
env:
7379
SIXLABORS_TESTING: True
7480
XUNIT_PATH: .\tests\PolygonClipper.Tests # Required for xunit

PolygonClipper.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<!--Add common namespaces to implicit global usings if enabled.-->
55
<ItemGroup Condition="'$(UsePolygonClipper)'=='enable' OR '$(UsePolygonClipper)'=='true'">
6-
<Using Include="PolygonClipper" />
6+
<Using Include="SixLabors.PolygonClipper" />
77
</ItemGroup>
88

99
</Project>

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
# PolygonClipper
1+
<h1 align="center">
22

3-
[![License: Six Labors Split](https://img.shields.io/badge/license-Six%20Labors%20Split-%23e30183)](https://github.com/SixLabors/PolygonClipper/blob/master/LICENSE)
3+
<img src="https://github.com/SixLabors/Branding/raw/main/icons/polygonclipper/sixlabors.polygonclipper.svg?sanitize=true" alt="SixLabors.PolygonClipper" width="256"/>
4+
<br/>
5+
SixLabors.PolygonClipper
6+
</h1>
7+
8+
<div align="center">
9+
10+
[![Build Status](https://img.shields.io/github/actions/workflow/status/SixLabors/PolygonClipper/build-and-test.yml?branch=main)](https://github.com/SixLabors/PolygonClipper/actions)
11+
[![Code coverage](https://codecov.io/gh/SixLabors/PolygonClipper/branch/main/graph/badge.svg)](https://codecov.io/gh/SixLabors/PolygonClipper)
12+
[![License: Six Labors Split](https://img.shields.io/badge/license-Six%20Labors%20Split-%23e30183)](https://github.com/SixLabors/PolygonClipper/blob/main/LICENSE)
13+
14+
</div>
415

516
A C# implementation of the Martínez–Rueda algorithm for performing Boolean operations on polygons. This library supports union, intersection, difference, and xor operations on complex polygons with holes, multiple contours, and self-intersections.
617

shared-infrastructure

src/PolygonClipper/PolygonClipper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<ItemGroup>
4343
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
44-
<None Include="..\..\shared-infrastructure\branding\icons\imagesharp\sixlabors.imagesharp.128.png" Pack="true" PackagePath="" />
44+
<None Include="..\..\shared-infrastructure\branding\icons\polygonclipper\sixlabors.polygonclipper.128.png" Pack="true" PackagePath="" />
4545
<None Include="..\..\PolygonClipper.props" Pack="true" PackagePath="build" />
4646
</ItemGroup>
4747

0 commit comments

Comments
 (0)