Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Updated Makefiles and workflows as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
AptiviCEO committed Apr 18, 2024
1 parent 39b86c8 commit a490b84
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 28 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build-rel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: dotnet build --configuration Release
- name: Testing
run: dotnet test --no-build --configuration Release
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation (Windows)
if: matrix.runs-on == 'windows-latest'
run: cd tools ; ./build.cmd ; cd ..
- name: Solution Compilation (Unix)
if: matrix.runs-on != 'windows-latest'
run: make
- name: Testing
run: dotnet test --no-build --configuration Release

26 changes: 15 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: dotnet build --configuration Debug
- name: Testing
run: dotnet test --no-build --configuration Debug
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Solution Compilation (Windows)
if: matrix.runs-on == 'windows-latest'
run: cd tools ; ./build.cmd Debug ; cd ..
- name: Solution Compilation (Unix)
if: matrix.runs-on != 'windows-latest'
run: make dbg
- name: Testing
run: dotnet test --no-build --configuration Debug

6 changes: 2 additions & 4 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ jobs:
dotnet-version: '8.0.x'
- name: Setup DocFX
run: dotnet tool install --global docfx
- name: Solution Compilation
run: dotnet build --configuration Release
- name: Generating documentation
run: docfx DocGen/docfx.json
- name: Generating Documentation
run: make doc
- name: Saving changes to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
dotnet-version: '8.0.x'
- name: Solution Compilation
run: dotnet build --configuration Release
run: make
- name: Package Publication
run: dotnet nuget push "GRILO.*/bin/Release/*.nupkg" --api-key ${{ secrets.NUGET_APIKEY }} --source "nuget.org" --skip-duplicate

6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ all: all-online
all-online:
$(MAKE) -C tools invoke-build

dbg:
$(MAKE) -C tools invoke-build ENVIRONMENT=Debug

doc:
$(MAKE) -C tools invoke-doc-build

clean:
rm -rf $(OUTPUTS)

Expand Down
6 changes: 5 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ DOTNET_HEAP_LIMIT = $(shell printf '%X\n' $$(($(DOTNET_AVPHYS_PAGES) * $(DOTNET_

invoke-build:
chmod +x ./build.sh
./build.sh || (echo Retrying with heap limit 0x$(DOTNET_HEAP_LIMIT)... && DOTNET_GCHeapHardLimit=$(DOTNET_HEAP_LIMIT) ./build.sh)
./build.sh $(ENVIRONMENT) || (echo Retrying with heap limit 0x$(DOTNET_HEAP_LIMIT)... && DOTNET_GCHeapHardLimit=$(DOTNET_HEAP_LIMIT) ./build.sh $(ENVIRONMENT))

invoke-doc-build: invoke-build
chmod +x ./docgen.sh
./docgen.sh || (echo Retrying with heap limit 0x$(DOTNET_HEAP_LIMIT)... && DOTNET_GCHeapHardLimit=$(DOTNET_HEAP_LIMIT) ./docgen.sh)

0 comments on commit a490b84

Please sign in to comment.