Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/maps-resource-integrity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Maps Resource Integrity

on:
pull_request:
paths:
- ".github/workflows/maps-resource-integrity.yml"
- "Directory.Build.props"
- "global.json"
- "scripts/check-maps-consumers.sh"
- "scripts/check-maps-resource-manifest.py"
- "source/Google/Maps/**"
push:
branches:
- main
paths:
- ".github/workflows/maps-resource-integrity.yml"
- "Directory.Build.props"
- "global.json"
- "scripts/check-maps-consumers.sh"
- "scripts/check-maps-resource-manifest.py"
- "source/Google/Maps/**"
workflow_dispatch:

permissions:
contents: read

jobs:
manifest:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Compare Maps targets with the upstream archive
run: python3 scripts/check-maps-resource-manifest.py

consumers:
needs: manifest
runs-on: macos-15
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Toolchain versions
run: |
xcodebuild -version
xcode-select -p

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Restore .NET workload
run: dotnet workload restore source/Google/Maps/Maps.csproj

- name: Restore Maps package
run: dotnet restore source/Google/Maps/Maps.csproj

- name: Pack Maps
run: dotnet pack source/Google/Maps/Maps.csproj --configuration Release --no-restore --output output

- name: Direct and transitive consumer checks
run: scripts/check-maps-consumers.sh --package-dir output --allow-xcode-mismatch

- name: Upload diagnostics
if: failure()
uses: actions/upload-artifact@v4
with:
name: maps-resource-integrity-diagnostics
path: artifacts/maps-resource-integrity/
if-no-files-found: ignore
Loading
Loading