-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4c23708
commit 67d1e21
Showing
5 changed files
with
41 additions
and
12 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
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore tools | ||
run: dotnet tool restore | ||
|
@@ -48,9 +48,33 @@ jobs: | |
ANDROID_VERSION: ${{ env.ANDROID_VERSION }} | ||
HAS_PLAY_KEYSTORE: ${{ env.HAS_PLAY_KEYSTORE }} | ||
|
||
# --------------------------------------------------------------------------------------- | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore tools | ||
run: dotnet tool restore | ||
|
||
- name: Test in Debug configuration | ||
working-directory: ./RbfxTemplate.Tests | ||
run: dotnet test --configuration Debug --verbosity normal | ||
|
||
- name: Test in Release configuration | ||
working-directory: ./RbfxTemplate.Tests | ||
run: dotnet test --configuration Release --verbosity normal | ||
|
||
# --------------------------------------------------------------------------------------- | ||
build_desktop: | ||
needs: set_version | ||
needs: [set_version, tests] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
|
@@ -83,7 +107,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore tools | ||
run: dotnet tool restore | ||
|
@@ -126,10 +150,8 @@ jobs: | |
shell: bash | ||
# --------------------------------------------------------------------------------------- | ||
build_android: | ||
needs: set_version | ||
needs: [set_version, tests] | ||
runs-on: ubuntu-latest | ||
env: | ||
ANDROID_PACKAGENAME: "com.companyname.RbfxTemplate.android" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -140,7 +162,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore tools | ||
run: dotnet tool restore | ||
|
@@ -179,6 +201,11 @@ jobs: | |
fileName: 'googleplay.jks' | ||
encodedString: ${{ secrets.PLAY_KEYSTORE }} | ||
|
||
- name: Extract ApplicationId from RbfxTemplate.Android.csproj | ||
working-directory: ./RbfxTemplate.Android | ||
run: | | ||
dotnet tool run ezpipeline get-msbuild-property -i RbfxTemplate.Android.csproj -p ApplicationId -v ANDROID_PACKAGENAME | ||
- name: Dotnet Publish | ||
working-directory: ./RbfxTemplate.Android | ||
run: | | ||
|
@@ -226,7 +253,7 @@ jobs: | |
track: internal | ||
# --------------------------------------------------------------------------------------- | ||
build_uwp: | ||
needs: set_version | ||
needs: [set_version, tests] | ||
runs-on: windows-latest | ||
|
||
steps: | ||
|
@@ -238,7 +265,7 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
dotnet-version: 8.0.x | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
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