diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0850d615..c9174f09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -97,10 +97,10 @@ jobs: msbuild /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}} - name: Upload Build outputs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ env.PROJECT_NAME }}-Server-${{ matrix.config }} - path: ${{ env.SOLUTION_DIR }}\${{ matrix.config }} + name: ${{ env.PROJECT_NAME }}-Server-${{ matrix.config }}-${{ matrix.platform }} + path: ${{ env.SOLUTION_DIR }}\${{ matrix.config }}\${{ matrix.platform }} Build_APK: name: Build Android APK @@ -201,35 +201,35 @@ jobs: # Upload Artifact Build # Noted For Output [MAIN_PROJECT_MODULE]/build/outputs/apk/gvr/debug/ - name: Upload APK Debug - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ env.PROJECT_NAME }}-debug-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK + name: ${{ env.PROJECT_NAME }}-debug-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }}-gvr-debug APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/gvr/debug/ # Noted For Output [MAIN_PROJECT_MODULE]/build/outputs/apk/gvr/release/ - name: Upload APK Release - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ env.PROJECT_NAME }}-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK + name: ${{ env.PROJECT_NAME }}-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }}-gvr-release APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/gvr/release/ # Noted For Output [MAIN_PROJECT_MODULE]/build/outputs/apk/noGvr/debug/ - name: Upload APK Debug - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ env.PROJECT_NAME }}-debug-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK + name: ${{ env.PROJECT_NAME }}-debug-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }}-nogvr-debug APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/noGvr/debug/ # Noted For Output [MAIN_PROJECT_MODULE]/build/outputs/apk/noGvr/release/ - name: Upload APK Release - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: ${{ env.PROJECT_NAME }}-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK + name: ${{ env.PROJECT_NAME }}-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }}-nogvr-release APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/noGvr/release/ - name: Upload Build outputs on failure if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: build-files path: ${{ env.GRADLE_DIR }}/app/.cxx/ @@ -451,7 +451,7 @@ jobs: cat log.txt # build/outputs/connected_android_test_additional_output/gvrDebugAndroidTest/connected/GPlay_Pixel_2_API_30(AVD) - 11/ALVRActivityTest_saveDeviceScreenBitmap.png - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: Test results diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 482b25cf..f492aa44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,19 +98,28 @@ jobs: run: make format-check # https://github.com/actions/runner-images/issues/842#issuecomment-1495115166 - - name: Install MSVC 2015 (v140) and Windows 8.1 SDK + - name: Install MSVC 2017 (v141) and Windows 8.1 SDK for MSVS2022 shell: powershell run: | + env + $VS_BTOOLS_EXE="vs_buildtools.exe" - $VS_BTOOLS_URI="https://aka.ms/vs/15/release/vs_buildtools.exe" + $VS_BTOOLS_URI="https://aka.ms/vs/17/release/vs_buildtools.exe" Invoke-WebRequest -Uri $VS_BTOOLS_URI -OutFile $VS_BTOOLS_EXE Start-Process -FilePath ./vs_BuildTools.exe -ArgumentList ` - "--add", "Microsoft.VisualStudio.Component.VC.140", ` - "--add", "Microsoft.VisualStudio.Component.Windows81SDK", ` - "--quiet", "--norestart", "--force", "--wait" -Wait -PassThru + "--add", "Microsoft.VisualStudio.Component.VC.v141.x86.x64", ` + "--quiet", "--norestart", "--force", "--wait" -Wait -PassThru -nonewwindow + + # 8.1 SDK is no longer available in latest github-runners and MSVS2022/2019 build tools + # have to download it manually like https://stackoverflow.com/a/77947878 + + Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdk81setup.exe + Start-Process -FilePath ./sdk81setup.exe -ArgumentList "/features +", "/q", "/norestart" -Wait -PassThru -nonewwindow - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2.0.0 + with: + vs-version: '17' - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}} @@ -120,10 +129,17 @@ jobs: working-directory: ${{env.GITHUB_WORKSPACE}} # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}} + run: | + env + + $env:VCTargetsPath="C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\" + + env + + msbuild /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}} - name: Upload Build outputs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROJECT_NAME }}-Server-${{ matrix.config }} path: ${{ env.SOLUTION_DIR }}\${{ matrix.config }} @@ -206,21 +222,21 @@ jobs: # Upload Artifact Build # Noted For Output eg. [MAIN_PROJECT_MODULE]/build/outputs/apk/gvr/debug/ - name: Upload Debug APKs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROJECT_NAME }}-debug-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/**/debug/ # Noted For Output eg. [MAIN_PROJECT_MODULE]/build/outputs/apk/gvr/release/ - name: Upload Release APKs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ env.PROJECT_NAME }}-${{ steps.vars.outputs.sha_short }}-${{ env.date_today }} APK path: ${{env.GRADLE_DIR}}/${{ env.MAIN_PROJECT_MODULE }}/build/outputs/apk/**/release/ - name: Upload Build outputs on failure if: failure() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: build-files path: ${{ env.GRADLE_DIR }}/app/.cxx/ diff --git a/code/common/src/version.info b/code/common/src/version.info index 94afd18b..ba45cd2c 100644 --- a/code/common/src/version.info +++ b/code/common/src/version.info @@ -1,2 +1,2 @@ -#define PVR_BINVERSION 2,0,0 -#define PVR_STRVERSION "2.0.0-beta" +#define PVR_BINVERSION 1,2,1 +#define PVR_STRVERSION "1.2.1-release-test" diff --git a/code/mobile/android/PhoneVR/app/build.gradle b/code/mobile/android/PhoneVR/app/build.gradle index 3b239e8b..2b7debc1 100644 --- a/code/mobile/android/PhoneVR/app/build.gradle +++ b/code/mobile/android/PhoneVR/app/build.gradle @@ -168,7 +168,6 @@ dependencies { gvrImplementation 'com.google.vr:sdk-base:1.200.0@aar' implementation 'com.google.cardboard.sdk:cardboard-sdk:1.17.0@aar' - implementation 'io.github.zxing-cpp:android:2.2.0-SNAPSHOT' implementation 'com.google.protobuf:protobuf-javalite:3.19.4' implementation 'androidx.camera:camera-core:1.3.4' implementation 'androidx.camera:camera-view:1.3.4' diff --git a/code/mobile/android/PhoneVR/version.properties b/code/mobile/android/PhoneVR/version.properties index d710f771..87c27ba7 100644 --- a/code/mobile/android/PhoneVR/version.properties +++ b/code/mobile/android/PhoneVR/version.properties @@ -1,2 +1,2 @@ -VERSION=2.0.0 -VERSION_NAME=2.0.0-beta +VERSION=1.2.1 +VERSION_NAME=1.2.1-release-test