From 6e8566ffb4e5b5d26132747d0b9fec15a2c65520 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 11 Aug 2022 17:02:54 -0700 Subject: [PATCH] actions cleanup --- .github/workflows/android-appcenter.yml | 4 ++-- .github/workflows/android-perf.yml | 28 +++++++++++------------ .github/workflows/dotnet-demos.yml | 4 ++-- .github/workflows/dotnet.yml | 4 ++-- .github/workflows/flutter.yml | 4 ++-- .github/workflows/go-demos.yml | 4 ++-- .github/workflows/go.yml | 4 ++-- .github/workflows/ios-appcenter.yml | 30 ++++++++++++------------- .github/workflows/ios-perf.yml | 30 ++++++++++++------------- .github/workflows/java-demos.yml | 4 ++-- .github/workflows/java-perf.yml | 4 ++-- .github/workflows/java.yml | 4 ++-- .github/workflows/nodejs-demos.yml | 6 ++--- .github/workflows/nodejs-perf.yml | 4 ++-- .github/workflows/nodejs.yml | 4 ++-- .github/workflows/python-demos.yml | 2 +- .github/workflows/python-perf.yml | 2 +- .github/workflows/python.yml | 2 +- .github/workflows/react-native.yml | 4 ++-- .github/workflows/web-perf.yml | 4 ++-- .github/workflows/web.yml | 4 ++-- 21 files changed, 78 insertions(+), 78 deletions(-) diff --git a/.github/workflows/android-appcenter.yml b/.github/workflows/android-appcenter.yml index 77efd307..697af81d 100644 --- a/.github/workflows/android-appcenter.yml +++ b/.github/workflows/android-appcenter.yml @@ -3,13 +3,13 @@ name: Android AppCenter Tests on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/android/CheetahDemo/**' - '!demo/android/CheetahDemo/README.md' - '.github/workflows/android-appcenter.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/android/CheetahDemo/**' - '!demo/android/CheetahDemo/README.md' diff --git a/.github/workflows/android-perf.yml b/.github/workflows/android-perf.yml index 7db450f5..1dc39f56 100644 --- a/.github/workflows/android-perf.yml +++ b/.github/workflows/android-perf.yml @@ -3,14 +3,14 @@ name: Android Performance on: workflow_dispatch: push: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'lib/android/**' - 'lib/common/**' - '.github/workflows/android-perf.yml' pull_request: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'lib/android/**' - 'lib/common/**' - '.github/workflows/android-perf.yml' @@ -18,7 +18,7 @@ on: defaults: run: working-directory: demo/android/CheetahDemo - + jobs: build: name: Run Android Speed Tests on AppCenter @@ -37,22 +37,22 @@ jobs: steps: - uses: actions/checkout@v2 - + - name: Setup Node.js environment uses: actions/setup-node@v2.4.0 - + - name: Install AppCenter CLI run: npm install -g appcenter-cli - + - name: set up JDK 11 uses: actions/setup-java@v2 with: java-version: '11' distribution: 'adopt' - + - name: Copy test_resources run: ./copy_test_resources.sh - + - name: Inject AccessKey run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties @@ -64,16 +64,16 @@ jobs: - name: Inject Proc Performance Threshold run: echo procPerformanceThresholdSec="${{ matrix.procPerformanceThresholdSec }}" >> local.properties - + - name: Grant execute permission for gradlew run: chmod +x gradlew - + - name: Build app run: ./gradlew assembleDebug - + - name: Build androidTest run: ./gradlew assembleAndroidTest - + - name: Run tests on AppCenter run: appcenter test run espresso --token ${{secrets.APPCENTERAPITOKEN}} diff --git a/.github/workflows/dotnet-demos.yml b/.github/workflows/dotnet-demos.yml index b9fe5cbb..c570fad6 100644 --- a/.github/workflows/dotnet-demos.yml +++ b/.github/workflows/dotnet-demos.yml @@ -3,13 +3,13 @@ name: .NET Demos on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/dotnet/**' - '!demo/dotnet/README.md' - '.github/workflows/dotnet-demos.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/dotnet/**' - '!demo/dotnet/README.md' diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 84d5dadc..0ddf3255 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -3,7 +3,7 @@ name: .NET on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/dotnet/**' - '!binding/dotnet/README.md' @@ -15,7 +15,7 @@ on: - 'lib/windows/**' - '.github/workflows/dotnet.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/dotnet/**' - '!binding/dotnet/README.md' diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 94c5dc4e..403b95fd 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -3,12 +3,12 @@ name: Flutter on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/flutter/pubspec.yaml' - '.github/workflows/flutter.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/flutter/pubspec.yaml' - '.github/workflows/flutter.yml' diff --git a/.github/workflows/go-demos.yml b/.github/workflows/go-demos.yml index 6685b671..a4335a59 100644 --- a/.github/workflows/go-demos.yml +++ b/.github/workflows/go-demos.yml @@ -3,13 +3,13 @@ name: Go Demos on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/go/**' - '!demo/go/README.md' - '.github/workflows/go-demos.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/go/**' - '!demo/go/README.md' diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5e340e94..f6c3057a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,7 +3,7 @@ name: Go on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/go/**' - '!binding/go/README.md' @@ -15,7 +15,7 @@ on: - 'lib/windows/**' - '.github/workflows/go.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/go/**' - '!binding/go/README.md' diff --git a/.github/workflows/ios-appcenter.yml b/.github/workflows/ios-appcenter.yml index 779a3fc6..1b41b8c0 100644 --- a/.github/workflows/ios-appcenter.yml +++ b/.github/workflows/ios-appcenter.yml @@ -3,20 +3,20 @@ name: iOS AppCenter Tests on: workflow_dispatch: push: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'binding/ios/CheetahAppTest/Podfile.lock' - '.github/workflows/ios-appcenter.yml' pull_request: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'binding/ios/CheetahAppTest/Podfile.lock' - '.github/workflows/ios-appcenter.yml' - + defaults: run: working-directory: binding/ios/CheetahAppTest - + jobs: build: name: Run iOS Tests on AppCenter @@ -46,19 +46,19 @@ jobs: CheetahAppTestUITests/CheetahAppTestUITests.swift - name: XCode Build - run: xcrun xcodebuild build-for-testing - -configuration Debug - -workspace CheetahAppTest.xcworkspace - -sdk iphoneos + run: xcrun xcodebuild build-for-testing + -configuration Debug + -workspace CheetahAppTest.xcworkspace + -sdk iphoneos -scheme CheetahAppTest - -derivedDataPath ddp + -derivedDataPath ddp CODE_SIGNING_ALLOWED=NO - name: Run Tests on AppCenter - run: appcenter test run xcuitest + run: appcenter test run xcuitest --token ${{secrets.APPCENTERAPITOKEN}} - --app "Picovoice/Cheetah-iOS" + --app "Picovoice/Cheetah-iOS" --devices "Picovoice/ios-min-max" - --test-series "cheetah-ios" - --locale "en_US" + --test-series "cheetah-ios" + --locale "en_US" --build-dir ddp/Build/Products/Debug-iphoneos diff --git a/.github/workflows/ios-perf.yml b/.github/workflows/ios-perf.yml index b2b859ff..c04642a4 100644 --- a/.github/workflows/ios-perf.yml +++ b/.github/workflows/ios-perf.yml @@ -3,22 +3,22 @@ name: iOS Performance on: workflow_dispatch: push: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'lib/ios/**' - 'lib/common/**' - '.github/workflows/ios-perf.yml' pull_request: - branches: [ master, v1.1 ] - paths: + branches: [ master ] + paths: - 'lib/ios/**' - 'lib/common/**' - '.github/workflows/ios-perf.yml' - + defaults: run: working-directory: binding/ios/CheetahAppTest - + jobs: build: name: Run iOS Tests on AppCenter @@ -71,19 +71,19 @@ jobs: PerformanceTest/PerformanceTest.swift - name: XCode Build - run: xcrun xcodebuild build-for-testing - -configuration Debug - -workspace CheetahAppTest.xcworkspace - -sdk iphoneos + run: xcrun xcodebuild build-for-testing + -configuration Debug + -workspace CheetahAppTest.xcworkspace + -sdk iphoneos -scheme PerformanceTest - -derivedDataPath ddp + -derivedDataPath ddp CODE_SIGNING_ALLOWED=NO - name: Run Tests on AppCenter - run: appcenter test run xcuitest + run: appcenter test run xcuitest --token ${{secrets.APPCENTERAPITOKEN}} - --app "Picovoice/Cheetah-iOS" + --app "Picovoice/Cheetah-iOS" --devices "Picovoice/${{ matrix.device }}" - --test-series "cheetah-ios" - --locale "en_US" + --test-series "cheetah-ios" + --locale "en_US" --build-dir ddp/Build/Products/Debug-iphoneos diff --git a/.github/workflows/java-demos.yml b/.github/workflows/java-demos.yml index 6e6cdd21..f923e4ce 100644 --- a/.github/workflows/java-demos.yml +++ b/.github/workflows/java-demos.yml @@ -3,13 +3,13 @@ name: Java Demos on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/java/**' - '!demo/java/README.md' - '.github/workflows/java-demos.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/java/**' - '!demo/java/README.md' diff --git a/.github/workflows/java-perf.yml b/.github/workflows/java-perf.yml index f2aef8e5..f0f429e9 100644 --- a/.github/workflows/java-perf.yml +++ b/.github/workflows/java-perf.yml @@ -3,14 +3,14 @@ name: Java Performance on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/java/**/CheetahPerformanceTest.java' - 'lib/common/**' - 'lib/java/**' - '.github/workflows/java-perf.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/java/**/CheetahPerformanceTest.java' - 'lib/common/**' diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index c7dd443b..2505fccd 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -3,7 +3,7 @@ name: Java on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/java/**' - '!binding/java/README.md' @@ -11,7 +11,7 @@ on: - 'lib/java/**' - '.github/workflows/java.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/java/**' - '!binding/java/README.md' diff --git a/.github/workflows/nodejs-demos.yml b/.github/workflows/nodejs-demos.yml index d5264417..eddb63ed 100644 --- a/.github/workflows/nodejs-demos.yml +++ b/.github/workflows/nodejs-demos.yml @@ -3,15 +3,15 @@ name: Node.js Demos on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/nodejs/**' - '!demo/nodejs/README.md' - 'lib/node/**' - '.github/workflows/nodejs-demos.yml' - + pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'demo/nodejs/**' - '!demo/nodejs/README.md' diff --git a/.github/workflows/nodejs-perf.yml b/.github/workflows/nodejs-perf.yml index 82eaf8b5..59c7197d 100644 --- a/.github/workflows/nodejs-perf.yml +++ b/.github/workflows/nodejs-perf.yml @@ -3,7 +3,7 @@ name: Node.js Performance on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/nodejs/perf.test.js' - 'lib/common/**' @@ -11,7 +11,7 @@ on: - '.github/workflows/nodejs-perf.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/nodejs/perf.test.js' - 'lib/common/**' diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a76fc84a..32950386 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,7 +3,7 @@ name: Node.js on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/nodejs/**' - '!binding/nodejs/README.md' @@ -11,7 +11,7 @@ on: - '.github/workflows/nodejs.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/nodejs/**' - '!binding/nodejs/README.md' diff --git a/.github/workflows/python-demos.yml b/.github/workflows/python-demos.yml index 6598a12e..ce9167b4 100644 --- a/.github/workflows/python-demos.yml +++ b/.github/workflows/python-demos.yml @@ -9,7 +9,7 @@ on: - 'demo/python/**' - '!demo/python/README.md' pull_request: - branches: [master, v1.1] + branches: [master] paths: - '.github/workflows/python-demos.yml' - 'demo/python/**' diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 94c51243..f06de1b5 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -14,7 +14,7 @@ on: - 'lib/raspberry-pi/**' - 'lib/windows/**' pull_request: - branches: [master, v1.1] + branches: [master] paths: - '.github/workflows/python-perf.yml' - 'binding/python/test_cheetah_perf.py' diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6c13c206..4089abaa 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -15,7 +15,7 @@ on: - 'lib/raspberry-pi/**' - 'lib/windows/**' pull_request: - branches: [master, v1.1] + branches: [master] paths: - '.github/workflows/python.yml' - 'binding/python/**' diff --git a/.github/workflows/react-native.yml b/.github/workflows/react-native.yml index 6d83888b..8a1d020b 100644 --- a/.github/workflows/react-native.yml +++ b/.github/workflows/react-native.yml @@ -3,7 +3,7 @@ name: React Native on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/react-native/**' - '!binding/react-native/README.md' @@ -12,7 +12,7 @@ on: - 'lib/ios/**' - '.github/workflows/react-native.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/react-native/**' - '!binding/react-native/README.md' diff --git a/.github/workflows/web-perf.yml b/.github/workflows/web-perf.yml index ba24531d..45c4b957 100644 --- a/.github/workflows/web-perf.yml +++ b/.github/workflows/web-perf.yml @@ -3,13 +3,13 @@ name: Web Performance on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'lib/wasm/**' - 'lib/common/**' - '.github/workflows/web-perf.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'lib/wasm/**' - 'lib/common/**' diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 9c1d90cd..9e9ddabb 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -3,14 +3,14 @@ name: Web on: workflow_dispatch: push: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/web/**' - '!binding/web/README.md' - 'lib/wasm/**' - '.github/workflows/web.yml' pull_request: - branches: [ master, v1.1 ] + branches: [ master ] paths: - 'binding/web/**' - '!binding/web/README.md'