Skip to content

Create objective-c-xcode.yml #2174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: update-wearos-sample-versions
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
version: 2
updates:
- package-ecosystem: gradle
directory: "/./ApiDemos/java"
directory: "/./ApiDemos/project/java-app"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
commit-message:
prefix: chore(deps)
- package-ecosystem: gradle
directory: "/./ApiDemos/kotlin"
directory: "/./ApiDemos/project/kotlin-app"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ jobs:
- name: Build and check
run: |
cd ApiDemos
for dir in ./*/ ; do ( cd "$dir" && ./gradlew buildDebugPreBundle ); done

for dir in ./*/ ; do
if [[ "$dir" != "./resources/" ]]; then
( cd "$dir" && ./gradlew buildDebugPreBundle )
fi
done

build-WearOS:
runs-on: ubuntu-latest
timeout-minutes: 45
Expand Down Expand Up @@ -79,7 +83,7 @@ jobs:
- name: Build and check
run: |
cd snippets
./gradlew assembleDebug lintGmsDebug
./gradlew assembleDebug lintDebug

build-tutorials:
runs-on: ubuntu-latest
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/objective-c-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Xcode - Build and Analyze

on:
push:
branches: [ "high" ]
pull_request:
branches: [ "high" ]

jobs:
build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build
env:
scheme: ${{ 'default' }}
run: |
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ jobs:
- name: Build APKs
run: |
echo "Generating ApiDemos (Java) APKs"
cd $GITHUB_WORKSPACE/ApiDemos/java
cd $GITHUB_WORKSPACE/ApiDemos/project/
./gradlew assemble
cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-gms-debug.apk
cp ./java-app/build/outputs/apk/debug/java-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-debug.apk

echo "Generating Kotlin (Kotlin) APKs"
cd $GITHUB_WORKSPACE/ApiDemos/kotlin
./gradlew assemble
cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-gms-debug.apk
cp ./kotlin-app/build/outputs/apk/debug/kotlin-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-debug.apk

- uses: actions/setup-node@v2
with:
Expand Down
14 changes: 6 additions & 8 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ plugins:
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
- "./ApiDemos/java/app/build.gradle.kts"
- "./ApiDemos/kotlin/app/build.gradle.kts"
- "./ApiDemos/project/java-app/build.gradle.kts"
- "./ApiDemos/project/kotlin-app/build.gradle.kts"
from: "versionName = \".*\""
to: "versionName = \"${nextRelease.version}\""
- - "@semantic-release/git"
- assets:
- "./ApiDemos/java/app/build.gradle.kts"
- "./ApiDemos/kotlin/app/build.gradle.kts"
- "./ApiDemos/project/java-app/build.gradle.kts"
- "./ApiDemos/project/kotlin-app/build.gradle.kts"
- - "@semantic-release/github"
- assets:
- "./ApiDemos-java-gms-debug.apk"
- "./ApiDemos-java-v3-debug.apk"
- "./ApiDemos-kotlin-gms-debug.apk"
- "./ApiDemos-kotlin-v3-debug.apk"
- "./ApiDemos-java-debug.apk"
- "./ApiDemos-kotlin-debug.apk"
options:
debug: true

This file was deleted.

27 changes: 0 additions & 27 deletions ApiDemos/java/app/src/main/res/layout/advanced_markers_demo.xml

This file was deleted.

This file was deleted.

This file was deleted.

Loading