Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build GSI for Valid Architectures

Check warning on line 1 in .github/workflows/builds.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

builds.yml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -10,7 +10,7 @@
- cron: '0 8 * * *' # Cron uses UTC; run at nightly at midnight PST

jobs:
cron:

Check warning on line 13 in .github/workflows/builds.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

builds.yml:13: overly broad permissions: default permissions used due to no permissions: block
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -18,7 +18,7 @@
os: [macos-15]

steps:
- uses: actions/checkout@v6

Check failure on line 21 in .github/workflows/builds.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 21 in .github/workflows/builds.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

builds.yml:21: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Archive for iOS
Expand All @@ -33,3 +33,26 @@
archive \
-scheme GoogleSignIn-Package \
-destination "platform=OS X"

xcode-27-preview-archive:

Check warning on line 37 in .github/workflows/builds.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

builds.yml:37: overly broad permissions: default permissions used due to no permissions: block
# Archive every supported platform against the Xcode 27 preview image. The
# image is preview, so this job does not block merges.
# https://github.com/actions/runner-images/issues/14404
runs-on: xcode-27
continue-on-error: true
strategy:
fail-fast: false
matrix:
destination: [
'generic/platform=iOS',
'platform=OS X'
]

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Archive
run: |
xcodebuild \
archive \
-scheme GoogleSignIn-Package \
-destination "${{ matrix.destination }}"
Comment on lines +41 to +58
32 changes: 32 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: unit_tests

Check warning on line 1 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

unit_tests.yml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -9,7 +9,7 @@

jobs:

pod-lib-lint:

Check warning on line 12 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

unit_tests.yml:12: overly broad permissions: default permissions used due to no permissions: block
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -24,7 +24,7 @@
- podspec: GoogleSignInSwiftSupport.podspec
includePodspecFlag: "--include-podspecs='GoogleSignIn.podspec'"
steps:
- uses: actions/checkout@v6

Check failure on line 27 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 27 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

unit_tests.yml:27: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: Update Bundler
run: bundle update --bundler
- name: Install Ruby gems with Bundler
Expand All @@ -34,7 +34,7 @@
run: |
pod lib lint ${{ matrix.podspec }} --verbose \
${{ matrix.includePodspecFlag }} ${{ matrix.flag }}
spm-build-test:

Check warning on line 37 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

unit_tests.yml:37: overly broad permissions: default permissions used due to no permissions: block
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -47,7 +47,7 @@
- sdk: 'iphonesimulator'
destination: '"platform=iOS Simulator,name=iPhone 16,OS=18.6"'
steps:
- uses: actions/checkout@v6

Check failure on line 50 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 50 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

unit_tests.yml:50: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
- name: Build unit test target
Expand All @@ -65,3 +65,35 @@
-destination ${{ matrix.destination }} \
test-without-building

xcode-27-preview-test:

Check warning on line 68 in .github/workflows/unit_tests.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

unit_tests.yml:68: overly broad permissions: default permissions used due to no permissions: block
# Build and run the unit tests against the Xcode 27 preview image. Xcode 27
# beta is the only (thus, default) Xcode on that image, so no xcode-select
# step is needed. The image is preview, so this job does not block merges.
# https://github.com/actions/runner-images/issues/14404
runs-on: xcode-27
continue-on-error: true
strategy:
fail-fast: false
matrix:
sdk: ['macosx', 'iphonesimulator']
include:
- sdk: 'macosx'
destination: '"platform=macOS"'
- sdk: 'iphonesimulator'
destination: '"platform=iOS Simulator,name=iPhone 17,OS=27.0"'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build unit test target
run: |
xcodebuild \
-scheme GoogleSignIn-Package \
-sdk ${{ matrix.sdk }} \
-destination ${{ matrix.destination }} \
build-for-testing
- name: Run unit test target
run: |
xcodebuild \
-scheme GoogleSignIn-Package \
-sdk ${{ matrix.sdk }} \
-destination ${{ matrix.destination }} \
test-without-building
Comment on lines +73 to +99
Loading