Skip to content

Commit

Permalink
Rework as standalone tool (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Sep 25, 2024
1 parent 41c0ed5 commit c6fca5d
Show file tree
Hide file tree
Showing 76 changed files with 1,983 additions and 3,511 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"paket": {
"version": "7.2.0",
"version": "8.0.3",
"commands": [
"paket"
]
Expand Down
84 changes: 64 additions & 20 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,81 @@ on:
push:
branches:
- master
- standalone-tool
paths:
- RELEASE_NOTES.md
- .github/workflows/pack.yml
jobs:
pack:
name: Package
test_mac:
name: Test (OSX)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build
run: sh ./build.sh
- name: Test
run: dotnet test src/Aardvark.Build.sln -c Release --no-build --nologo --logger:"console;verbosity=normal"

test_win:
name: Test (Windows)
runs-on: windows-latest
steps:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore Tools
run: dotnet tool restore
- name: Restore
run: dotnet paket restore
- name: Build
shell: cmd
run: dotnet build -c Release Aardvark.Build.sln
run: build.cmd
- name: Test
run: dotnet test src\Aardvark.Build.sln -c Release --no-build --nologo --logger:"console;verbosity=normal"

test_linux:
name: Test (Linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Build
run: sh ./build.sh
- name: Test
run: dotnet test src/Aardvark.Build.sln -c Release --no-build --nologo --logger:"console;verbosity=normal"

pack:
name: Package
runs-on: windows-latest
needs:
- test_mac
- test_win
- test_linux
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dotnet
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Pack
shell: cmd
run: pack.cmd
- name: Upload Package
uses: actions/upload-artifact@v3
with:
name: packages
path: bin\pack
- name: NuGet
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: cmd
run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate
# - name: Upload Package
# uses: actions/upload-artifact@v4
# with:
# name: packages
# path: bin\pack
# - name: NuGet
# env:
# NUGET_KEY: ${{ secrets.NUGET_KEY }}
# shell: cmd
# run: dotnet nuget push "bin\pack\*.nupkg" -k %NUGET_KEY% -s "https://api.nuget.org/v3/index.json" --skip-duplicate
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ obj/
/.vs
/.ionide
**/.vs
**/bin
/getversion/bin/**
/.version
src/Tests/TestApp/build/
src/Tests/TestApp/standalone-tool
50 changes: 0 additions & 50 deletions Aardvark.Build.sln

This file was deleted.

Loading

0 comments on commit c6fca5d

Please sign in to comment.