Skip to content

Commit c800ca5

Browse files
committed
GHA: add Linux build
1 parent e2f1eb2 commit c800ca5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/dotnet.yml

+21
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,24 @@ jobs:
6565
run: dotnet build ./Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj /p:Configuration=Release /t:restore,build,pack /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
6666
- name: Build sample
6767
run: dotnet build ./Source/OxyplotMauiSample/OxyplotMauiSample.csproj /p:Configuration=Release /t:restore,build /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
68+
69+
linuxBuild:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
with:
74+
fetch-depth: 0
75+
- name: Setup .NET
76+
uses: actions/setup-dotnet@v4
77+
with:
78+
dotnet-version: 8.0.x
79+
- name: Install workloads
80+
run: dotnet workload install android wasm-tools maui-android
81+
- name: Install Android tools
82+
run: |
83+
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager \
84+
--sdk_root=$ANDROID_SDK_ROOT "platform-tools"
85+
- name: Build library (with nuget package)
86+
run: dotnet build ./Source/OxyPlot.Maui.Skia/OxyPlot.Maui.Skia.csproj /p:Configuration=Release /t:restore,build,pack /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false
87+
- name: Build sample
88+
run: dotnet build ./Source/OxyplotMauiSample/OxyplotMauiSample.csproj /p:Configuration=Release /t:restore,build /p:Version=$(git describe) /p:ContinuousIntegrationBuild=true /p:DeterministicSourcePaths=false

0 commit comments

Comments
 (0)