CodeQL #64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CodeQL | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| schedule: | |
| - cron: '0 3 * * 1' | |
| jobs: | |
| analyze-kotlin: | |
| name: Analyze (Java/Kotlin) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - uses: github/codeql-action/init@v3 | |
| with: | |
| languages: 'java-kotlin' | |
| # Custom build steps for Kotlin Multiplatform (avoid Android/iOS toolchains) | |
| - name: Build Kotlin common metadata | |
| run: ./gradlew :pollingengine:compileKotlinMetadata --no-daemon --stacktrace | |
| - uses: github/codeql-action/analyze@v3 | |
| analyze-swift: | |
| name: Analyze (Swift) | |
| runs-on: macos-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: github/codeql-action/init@v3 | |
| with: | |
| languages: 'swift' | |
| # Custom build steps for Swift (explicit xcodebuild) | |
| - name: Build iOS app for simulator (no code signing) | |
| run: xcodebuild -project iosApp/iosApp.xcodeproj -scheme iosApp -sdk iphonesimulator -configuration Release CODE_SIGNING_ALLOWED=NO build | |
| - uses: github/codeql-action/analyze@v3 |