Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into issue-167_attribute…
Browse files Browse the repository at this point in the history
…definitions-link-blockrecord
  • Loading branch information
DomCR committed Jan 27, 2025
2 parents e10dfba + 35bff71 commit 7417b2b
Show file tree
Hide file tree
Showing 711 changed files with 258,647 additions and 269,062 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
runs-on: windows-latest

steps:
- name: Checkout
run: git config --global core.autocrlf true
- uses: actions/checkout@v2
with:
with:
submodules: true
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Restore dependencies and Build
working-directory: src
run: |
dotnet restore
dotnet build --configuration Release --no-restore
29 changes: 11 additions & 18 deletions .github/workflows/build_n_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,22 @@ on:
pull_request:
branches: [ master ]

env:
SAMPLES_FOLDER: "../../../../samples"
OUTPUT_SAMPLES_FOLDER: "../../../../samples/out"
OUTPUT_SINGLE_CASES_FOLDER: "../../../../samples/out/single_cases"
LOCAL_ENV: "false"
DELTA: "0.00001"
DECIMAL_PRECISION: "5"
RUN_DWG_WRITER_SINGLE_CASES_TEST: "false"
defaults:
run:
working-directory: ./src

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
run: git config --global core.autocrlf true
- uses: actions/checkout@v2
with:
submodules: true
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- uses: cardinalby/export-env-action@v2
with:
envFile: 'github.env'
- name: Build and test
run: |
dotnet restore
dotnet build --configuration Release --no-restore
dotnet test --configuration Release --no-build --verbosity normal
36 changes: 36 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Coveralls

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: cardinalby/export-env-action@v2
with:
envFile: 'github.env'
- name: Build and Test ACadSharp
working-directory: src
run: |
dotnet restore
dotnet build --no-restore
dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=lcov --no-build --verbosity normal ACadSharp.Tests/
- name: Build and Test Submodules
working-directory: src/CSUtilities
run: |
dotnet restore
dotnet build --no-restore
dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=lcov --no-build --verbosity normal CSUtilities.Tests/
dotnet test -p:CollectCoverage=true -p:CoverletOutput=TestResults/ -p:CoverletOutputFormat=lcov --no-build --verbosity normal CSMath.Tests/
- name: Coveralls action
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
files: src/ACadSharp.Tests/TestResults/coverage.net6.0.info src/CSUtilities/CSUtilities.Tests/TestResults/coverage.info src/CSUtilities/CSMath.Tests/TestResults/coverage.info
45 changes: 23 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
#name: Publish NuGet package
name: Publish NuGet package

#on:
# push:
# tags:
# - '*'
on:
workflow_dispatch:
release:
branches: [ master ]

#jobs:
# build:

# runs-on: windows-latest

# steps:
# - name: Checkout
# run: git config --global core.autocrlf true
# - uses: actions/checkout@v2
# with:
# submodules: true
# - name: Restore dependencies
# run: dotnet restore
# - name: Build NuGet package
# run: dotnet pack ./ACadSharp.sln -c Release -o packages
# - name: Publish NuGet package
# run: dotnet nuget push .\packages\ACadSharp*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: Publish NuGet package
working-directory: src
run: |
git submodule update --force --recursive --init --remote
dotnet restore
dotnet build --configuration Release
dotnet pack ./ACadSharp/ACadSharp.csproj --configuration Release
foreach($file in (Get-ChildItem ./nupkg -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
21 changes: 21 additions & 0 deletions .github/workflows/wiki-gen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Wiki genrator

on:
push:
branches: [ master ]

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
run: git config --global core.autocrlf true
- uses: actions/checkout@v2
with:
submodules: true
- name: Update Wiki
run: ./update-wiki.sh
shell: bash
env:
ASSEMBLY_PATH: "ACadSharp/bin/Release/net6.0/ACadSharp.dll"
GITHUB_TOKEN: ${{ github.token }}
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "CSUtilities"]
path = CSUtilities
url = https://github.com/DomCR/CSUtilities
[submodule "src/CSUtilities"]
path = src/CSUtilities
url = https://github.com/DomCR/CSUtilities.git
44 changes: 0 additions & 44 deletions ACadSharp.Examples/IOExamples.cs

This file was deleted.

34 changes: 0 additions & 34 deletions ACadSharp.Examples/ReaderExamples.cs

This file was deleted.

34 changes: 0 additions & 34 deletions ACadSharp.Tests/ACadSharp.Tests.csproj

This file was deleted.

31 changes: 0 additions & 31 deletions ACadSharp.Tests/Entities/ArcTests.cs

This file was deleted.

35 changes: 0 additions & 35 deletions ACadSharp.Tests/Entities/PolylineTest.cs

This file was deleted.

Loading

0 comments on commit 7417b2b

Please sign in to comment.