Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions .github/workflows/build-adapters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Build All Adapters

on:
# Run daily at 9:00 AM UTC
schedule:
- cron: '0 9 * * *'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are there changes here other than the yml additions?

# Allow manual trigger from GitHub UI
workflow_dispatch:

# Also run on push to master for immediate feedback
push:
branches:
- master

# Run on pull requests
pull_request:

jobs:
build:
name: Build Adapters
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what this is supposed to do? do you me to check according to a requirement defined somewhere?

adapter:
- Applovin
- BidMachine
- Bigo
- Chartboost
- Facebook
- Google (AdMob and Ad Manager)
- InMobi
- Line
- MobileFuse
- Moloco
- Ogury
- Pangle
- PubMatic
- UnityAds
- Verve
- Vungle
- Yandex
- YSO

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Grant execute permission for gradlew
run: chmod +x "Adapters/${{ matrix.adapter }}/gradlew"

- name: Build ${{ matrix.adapter }} adapter
run: |
cd "Adapters/${{ matrix.adapter }}"
./gradlew build --no-daemon --stacktrace

- name: Upload build artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: build-reports-${{ matrix.adapter }}
path: |
Adapters/${{ matrix.adapter }}/**/build/reports/
Adapters/${{ matrix.adapter }}/**/build/test-results/
retention-days: 7

notify:
name: Build Summary
runs-on: ubuntu-latest
needs: build
if: always()

steps:
- name: Check build status
run: |
if [ "${{ needs.build.result }}" == "success" ]; then
echo "✅ All adapters built successfully!"
exit 0
else
echo "❌ Some adapters failed to build"
exit 1
fi

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ hs_err_pid*

*/ReleaseCandidates
*.idea
*.gradle
*/*/gradle/
**/build/
**/local.properties
*.iml
*.idea
*.log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ironsource.adapters.admob">
<uses-permission android:name="android.permission.INTERNET" />

</manifest>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading