Support maccatalyst #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| mac-build: | |
| runs-on: macOS-15 | |
| # needs: windows-build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update Versions | |
| env: | |
| VERSION_PREFIX: '0.9' | |
| VERSION_SUFFIX: ${{github.run_number}} | |
| run: | | |
| VERSION=$VERSION_PREFIX.$VERSION_SUFFIX | |
| sed -i bak "s:<Version>1.0.0</Version>:<Version>$VERSION</Version>:g" NGraphics/NGraphics.csproj | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: 16.3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Restore Workloads | |
| run: sudo dotnet workload restore | |
| # - uses: actions/download-artifact@master | |
| # with: | |
| # name: NGraphics.UWP | |
| # path: Build/NGraphics.UWP | |
| - name: Build | |
| run: | | |
| dotnet build -c Release NGraphics/NGraphics.csproj | |
| - name: Test | |
| run: | | |
| dotnet test -c Release NGraphics.Test/NGraphics.Test.csproj | |
| - name: Package | |
| run: | | |
| dotnet pack -o PackageOut NGraphics/NGraphics.csproj | |
| - uses: actions/upload-artifact@master | |
| with: | |
| name: NGraphicsPackage | |
| path: PackageOut | |
| windows-build: | |
| runs-on: windows-2019 | |
| if: false | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Build NGraphics | |
| shell: cmd | |
| run: | | |
| rem "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
| set PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin";%PATH% | |
| $env:Path = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" + $env:Path | |
| msbuild /p:Configuration=Release /t:Restore NGraphics\NGraphics.csproj | |
| msbuild /p:Configuration=Release NGraphics\NGraphics.csproj | |
| - uses: actions/upload-artifact@master | |
| with: | |
| name: NGraphics | |
| path: NGraphics\bin\Release\netstandard1.0 | |
| - name: Build NGraphics.Net | |
| shell: cmd | |
| run: | | |
| set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin;%PATH% | |
| msbuild /p:Configuration=Release Platforms\NGraphics.Net\NGraphics.Net.csproj | |
| - uses: actions/upload-artifact@master | |
| with: | |
| name: NGraphics.Net | |
| path: Platforms\NGraphics.Net\bin\Release | |
| - name: Build NGraphics.UWP | |
| shell: cmd | |
| run: | | |
| set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin;%PATH% | |
| msbuild /p:Configuration=Release /t:Restore Platforms\NGraphics.UWP\NGraphics.UWP.csproj | |
| msbuild /p:Configuration=Release Platforms\NGraphics.UWP\NGraphics.UWP.csproj | |
| - uses: actions/upload-artifact@master | |
| with: | |
| name: NGraphics.UWP | |
| path: Platforms\NGraphics.UWP\bin\Release |