mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 12:28:37 +00:00
CI: fix CodeQL manual builds
This commit is contained in:
48
.github/workflows/codeql.yml
vendored
48
.github/workflows/codeql.yml
vendored
@@ -27,27 +27,42 @@ jobs:
|
|||||||
runs_on: blacksmith-16vcpu-ubuntu-2404
|
runs_on: blacksmith-16vcpu-ubuntu-2404
|
||||||
needs_node: true
|
needs_node: true
|
||||||
needs_python: false
|
needs_python: false
|
||||||
|
needs_java: false
|
||||||
|
needs_swift_tools: false
|
||||||
|
needs_manual_build: false
|
||||||
needs_autobuild: false
|
needs_autobuild: false
|
||||||
- language: actions
|
- language: actions
|
||||||
runs_on: blacksmith-16vcpu-ubuntu-2404
|
runs_on: blacksmith-16vcpu-ubuntu-2404
|
||||||
needs_node: false
|
needs_node: false
|
||||||
needs_python: false
|
needs_python: false
|
||||||
|
needs_java: false
|
||||||
|
needs_swift_tools: false
|
||||||
|
needs_manual_build: false
|
||||||
needs_autobuild: false
|
needs_autobuild: false
|
||||||
- language: python
|
- language: python
|
||||||
runs_on: blacksmith-16vcpu-ubuntu-2404
|
runs_on: blacksmith-16vcpu-ubuntu-2404
|
||||||
needs_node: false
|
needs_node: false
|
||||||
needs_python: true
|
needs_python: true
|
||||||
|
needs_java: false
|
||||||
|
needs_swift_tools: false
|
||||||
|
needs_manual_build: false
|
||||||
needs_autobuild: false
|
needs_autobuild: false
|
||||||
- language: java-kotlin
|
- language: java-kotlin
|
||||||
runs_on: blacksmith-16vcpu-ubuntu-2404
|
runs_on: blacksmith-16vcpu-ubuntu-2404
|
||||||
needs_node: false
|
needs_node: false
|
||||||
needs_python: false
|
needs_python: false
|
||||||
needs_autobuild: true
|
needs_java: true
|
||||||
|
needs_swift_tools: false
|
||||||
|
needs_manual_build: true
|
||||||
|
needs_autobuild: false
|
||||||
- language: swift
|
- language: swift
|
||||||
runs_on: macos-latest
|
runs_on: macos-latest
|
||||||
needs_node: false
|
needs_node: false
|
||||||
needs_python: false
|
needs_python: false
|
||||||
needs_autobuild: true
|
needs_java: false
|
||||||
|
needs_swift_tools: true
|
||||||
|
needs_manual_build: true
|
||||||
|
needs_autobuild: false
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -67,6 +82,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
|
|
||||||
|
- name: Setup Java
|
||||||
|
if: matrix.needs_java
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: "21"
|
||||||
|
|
||||||
|
- name: Setup Swift build tools
|
||||||
|
if: matrix.needs_swift_tools
|
||||||
|
run: brew install xcodegen swiftlint swiftformat
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v4
|
uses: github/codeql-action/init@v4
|
||||||
with:
|
with:
|
||||||
@@ -77,6 +103,24 @@ jobs:
|
|||||||
if: matrix.needs_autobuild
|
if: matrix.needs_autobuild
|
||||||
uses: github/codeql-action/autobuild@v4
|
uses: github/codeql-action/autobuild@v4
|
||||||
|
|
||||||
|
- name: Build Android for CodeQL
|
||||||
|
if: matrix.language == 'java-kotlin'
|
||||||
|
working-directory: apps/android
|
||||||
|
run: ./gradlew --no-daemon :app:assembleDebug
|
||||||
|
|
||||||
|
- name: Build Swift for CodeQL
|
||||||
|
if: matrix.language == 'swift'
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
swift build --package-path apps/macos --configuration release
|
||||||
|
cd apps/ios
|
||||||
|
xcodegen generate
|
||||||
|
xcodebuild build \
|
||||||
|
-project OpenClaw.xcodeproj \
|
||||||
|
-scheme OpenClaw \
|
||||||
|
-destination "generic/platform=iOS Simulator" \
|
||||||
|
CODE_SIGNING_ALLOWED=NO
|
||||||
|
|
||||||
- name: Analyze
|
- name: Analyze
|
||||||
uses: github/codeql-action/analyze@v4
|
uses: github/codeql-action/analyze@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user