-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build packages and store artifacts | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
|
||
# --------------------------------------------- DotNet SDK | ||
|
||
- name: Setup .NET SDK | ||
uses: actions/setup-dotnet@v4 | ||
|
||
# --------------------------------------------- Android SDK | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'zulu' | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
# --------------------------------------------- Workloads | ||
|
||
- name: Install Workload | ||
run: dotnet workload install maui-windows android wasm-tools wasi-experimental # ois and maui-ios are not supported in ubuntu machines https://github.com/dotnet/maui/issues/15929 | ||
|
||
# --------------------------------------------- checkout repo | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: dotnet tool restore | ||
|
||
- name: Install dependencies | ||
run: dotnet restore src/build.sln | ||
|
||
# - name: Create build solution | ||
# run: dotnet slngen -c Release -o build.sln --launch false src\**\*.csproj | ||
|
||
- name: define version suffix | ||
run: echo "VERSIONSUFFIX=Preview-$(date +'%Y%m%d-%H%M')" >> $GITHUB_ENV | ||
|
||
- name: define version suffix | ||
run: echo "VERSIONSUFFIXSHORT=Prv-$(date +'%Y%m%d-%H%M')" >> $GITHUB_ENV | ||
|
||
- name: Build | ||
run: dotnet build src/build.sln -c Release --version-suffix ${{env.VERSIONSUFFIX}} | ||
|
||
# - name: Test | ||
# run: dotnet test -c Release --no-build | ||
|
||
- name: Pack nugets | ||
run: dotnet pack src/build.sln -c Release --no-build --output . | ||
|
||
- name: Pack sources | ||
run: dotnet PackAsSourcesNuget src/build.sln --output . --append-sources-suffix true --version-suffix ${{env.VERSIONSUFFIXSHORT}} | ||
|
||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget packages | ||
path: | | ||
*.nupkg | ||
*.snupkg |
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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