Skip to content

OpenXR CTS 1.1.37.0

OpenXR CTS 1.1.37.0 #9

# Copyright 2021-2023, Collabora, Ltd.
# SPDX-License-Identifier: CC0-1.0
name: Android OpenXR-CTS - Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
# CTS
android-build:
uses: ./.github/workflows/android-cts-build.yml
with:
gradleTask: assembleRelease
gradleOutputDir: src/conformance/build/outputs/apk/release
sign-and-publish:
if: startsWith(github.ref, 'refs/tags/')
needs:
- android-build
env:
# SIGNED_FILE: ${{ steps.sign_cts.outputs.signedReleaseFile }}
TAGNAME: "${{ github.event.release.tag_name }}"
runs-on: ubuntu-latest
steps:
- name: Retrieve artifacts
uses: actions/download-artifact@v3
with:
name: android-openxr-cts-unsigned
path: src/conformance/build/outputs/apk/release
- name: Sign OpenXR-CTS Android release
uses: r0adkll/sign-android-release@349ebdef58775b1e0d8099458af0816dc79b6407
id: sign_cts
with:
releaseDirectory: src/conformance/build/outputs/apk/release
signingKeyBase64: "${{ secrets.APK_SIGNING_KEY }}"
alias: "${{ secrets.APK_ALIAS }}"
keyStorePassword: "${{ secrets.APK_KEY_STORE_PASSWORD }}"
keyPassword: "${{ secrets.APK_KEY_PASSWORD }}"
env:
BUILD_TOOLS_VERSION: "30.0.3"
- name: Rename APK
env:
SIGNED_FILE: "${{ steps.sign_cts.outputs.signedReleaseFile }}"
run: mv $SIGNED_FILE $TAGNAME.apk
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "${{ github.event.release.tag_name }}.apk"