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
761 changes: 761 additions & 0 deletions 2CodePilot-TYPE-XI(1st_Draft).yml.txt

Large diffs are not rendered by default.

761 changes: 761 additions & 0 deletions CodePilot Type-XI (1st_Draft).txt

Large diffs are not rendered by default.

1,280 changes: 1,280 additions & 0 deletions Creating automation for project completion · GitHub Copilot.txt

Large diffs are not rendered by default.

685 changes: 685 additions & 0 deletions codepilot.yml.txt

Large diffs are not rendered by default.

399 changes: 399 additions & 0 deletions dashboard.yml.txt

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions docs_operations_actions-network-allowlist_Version4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Android Build Process: Required Domains for Network Access

To successfully download all dependencies for Android builds, the following domains must be accessible:

- `dl.google.com` — Android SDK and build tools.
- `maven.google.com` — Official Maven repository for Android components.
- `repo1.maven.org` — Maven Central repository for Gradle dependencies.
- `services.gradle.org` — Gradle initialization and wrapper scripts.
- `storage.googleapis.com` — Android build tool mirrors.
- `github.com` and `objects.githubusercontent.com` — Repository source checkout, actions, and artifact releases.
- `actions.githubusercontent.com` — CI runner-based token exchange for action workflows.

### Verification Checklist

- Ensure these domains are reachable from self-hosted runners, or configure network/firewall settings to allow access.
- Monitor workflow logs for blocked domains and update the list as necessary.
72 changes: 72 additions & 0 deletions github_workflows_build-weblabs-apk_Version4.yml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Build WebLabs APK
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This file appears to be a GitHub Actions workflow but has a .txt extension and versioning in its name. To be recognized by GitHub Actions, workflow files must be located in the .github/workflows/ directory and have a .yml or .yaml extension. Please rename this file to build-weblabs-apk.yml and place it in the correct directory. This comment applies to many other workflow-like files in this pull request.


on:
push:
branches:
- main
- 'release/**'
workflow_dispatch:

jobs:
build-apk:
name: Build APK
runs-on: ubuntu-latest
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx3g
ANDROID_HOME: ${{ runner.temp }}/android-sdk
PATH: ${{ runner.temp }}/android-sdk/cmdline-tools/latest/bin:${{ runner.temp }}/android-sdk/emulator:$PATH

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

- name: Set up Java (required for Gradle)
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

# Optional: Cache Gradle packages
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/gradle-wrapper.properties', '**/*.gradle*', '**/*.gradle.kts') }}
restore-keys: |
gradle-${{ runner.os }}-

# Download and set up Android SDK
- name: Install Android SDK
run: |
mkdir -p $ANDROID_HOME/cmdline-tools
curl -o sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
unzip -q sdk.zip -d $ANDROID_HOME/cmdline-tools
mv $ANDROID_HOME/cmdline-tools/cmdline-tools $ANDROID_HOME/cmdline-tools/latest
yes | sdkmanager --licenses
sdkmanager --update
sdkmanager "platform-tools" "platforms;android-34" "build-tools;34.0.0"
Comment on lines +41 to +49
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The Android SDK is being downloaded and installed manually from a hardcoded URL. This approach is brittle and can break if the URL changes or the file is moved. It is better to use a dedicated setup action like android-actions/setup-android to manage the SDK installation, as it is more robust, declarative, and maintained by the community.


# Build APK
- name: Assemble release APK
run: |
./gradlew assembleRelease

# Collect and upload APK artifact(s)
- name: Upload APK artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: WebLabs-MobIDE-apk
path: app/build/outputs/**/*.apk

# Upload build logs if the build fails
- name: Upload Build Logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: WebLabs-MobIDE-build-logs
path: |
**/build/*.log
app/build/outputs/**/*.log
Loading
Loading