Skip to content

Commit

Permalink
Merge pull request OkBuddyGSI#3 from sounddrill31/main
Browse files Browse the repository at this point in the history
Merge New Commits
  • Loading branch information
sounddrill31 authored May 26, 2024
2 parents e2c2033 + 2cc092c commit fc004a5
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ jobs:
cp crave.conf $PROJECTFOLDER
fi
if [[ -z "${{ secrets.CUSTOM_YAML }}" ]]; then
cp yamls/crave.yaml.aosp $PROJECTFOLDER/.repo/manifests/crave.yaml
cp configs/crave/crave.yaml.aosp $PROJECTFOLDER/.repo/manifests/crave.yaml
echo "No Custom Configuration Found, Using Template!"
else
touch $PROJECTFOLDER/.repo/manifests/crave.yaml || true
Expand Down Expand Up @@ -323,7 +323,12 @@ jobs:
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} .repo/local_manifests && \
if [ ! \$? == 0 ]; then \
curl -o .repo/local_manifests ${{ github.event.inputs.LOCAL_MANIFEST }}; \
echo "Git clone failed, downloading through curl instead..."; \
fi \
# Sync the repositories
/opt/crave/resync.sh && \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ jobs:
cp crave.conf $PROJECTFOLDER
fi
if [[ -z "${{ secrets.CUSTOM_YAML }}" ]]; then
cp yamls/crave.yaml.aosp $PROJECTFOLDER/.repo/manifests/crave.yaml
cp configs/crave/crave.yaml.aosp $PROJECTFOLDER/.repo/manifests/crave.yaml
echo "No Custom Configuration Found, Using Template!"
else
touch $PROJECTFOLDER/.repo/manifests/crave.yaml || true
Expand Down Expand Up @@ -348,7 +348,12 @@ jobs:
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} .repo/local_manifests && \
if [ ! \$? == 0 ]; then \
curl -o .repo/local_manifests ${{ github.event.inputs.LOCAL_MANIFEST }}; \
echo "Git clone failed, downloading through curl instead..."; \
fi \
# Sync the repositories
/opt/crave/resync.sh && \
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/twrp-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
# Change this to self-hosted after setting up devspace as github actions runner
runs-on: ubuntu-latest
concurrency:
group: ${{ github.actor }}
group: ${{ github.actor }}-small
steps:
# Accept Project Variables
- name: Set Repo Project
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
cp crave.conf $PROJECTFOLDER
fi
if [[ -z "${{ secrets.CUSTOM_YAML }}" ]]; then
cp yamls/crave.yaml.twrp.legacy $PROJECTFOLDER/.repo/manifests/crave.yaml
cp configs/crave/crave.yaml.twrp.legacy $PROJECTFOLDER/.repo/manifests/crave.yaml
echo "No Custom Configuration Found, Using Template!"
else
touch $PROJECTFOLDER/.repo/manifests/crave.yaml || true
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
$BUILD_DIFFERENT_ROM ; \
git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} .repo/local_manifests && \
if [ ! $? == 0 ]; then \
if [ ! \$? == 0 ]; then \
curl -o .repo/local_manifests ${{ github.event.inputs.LOCAL_MANIFEST }}; \
echo "Git clone failed, downloading through curl instead..."; \
fi \
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/twrp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
# Change this to self-hosted after setting up devspace as github actions runner
runs-on: ubuntu-latest
concurrency:
group: ${{ github.actor }}
group: ${{ github.actor }}-small
steps:
# Accept Project Variables
- name: Set Repo Project
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
cp crave.conf $PROJECTFOLDER
fi
if [[ -z "${{ secrets.CUSTOM_YAML }}" ]]; then
cp yamls/crave.yaml.twrp $PROJECTFOLDER/.repo/manifests/crave.yaml
cp configs/crave/crave.yaml.twrp $PROJECTFOLDER/.repo/manifests/crave.yaml
echo "No Custom Configuration Found, Using Template!"
else
touch $PROJECTFOLDER/.repo/manifests/crave.yaml || true
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
$BUILD_DIFFERENT_ROM ; \
git clone ${{ github.event.inputs.LOCAL_MANIFEST }} --depth 1 -b ${{ github.event.inputs.LOCAL_MANIFEST_BRANCH }} .repo/local_manifests && \
if [ ! $? == 0 ]; then \
if [ ! \$? == 0 ]; then \
curl -o .repo/local_manifests ${{ github.event.inputs.LOCAL_MANIFEST }}; \
echo "Git clone failed, downloading through curl instead..."; \
fi \
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,27 @@ Custom Upload limit for github releases. Default is 2147483648
- [My Manifest tester](https://github.com/sounddrill31/Manifest_Tester) (credits to [AmogOS](https://github.com/AmogOS-Rom) project for original logic)
- [Other contributors](https://github.com/sounddrill31/crave_aosp_builder/graphs/contributors)
- [The crave team](https://github.com/accupara) for the build servers and helping us out when we get stuck

## FAQs:
Q1. What is this Crave.io? How do I get an account?

A. Crave.io is a build accelerator capable of cutting down build time by quite a bit. They are providing free build servers, however: self signup is disabled.

Please contact either `uvatbc`(`yuvraaj` on telegram) or me on discord/telegram.

Remember to share the following:
- Name
- Email
- Git profile(preferably with your device sources or stuff you're proud of)


Q2. Hey, I get an error with this repository! Whom do i ask?

A. Please feel free to contact me through the [crave.io discord](https://discord.crave.io) or [ROM Builders telegram](https://t.me/ROM_builders). My username is `sounddrill`


Q3. This doesn't support XXnewrom2024XX! How do I build it?

A. [Read this](#repo-init-command)

Here, we enter our repo init command for a non-supported ROM. If we are building something that's supported by crave, we can leave the default as is.
Binary file modified assets/cravetoken.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions scripts/vscode-tunnel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2024 Souhrud Reddy
# SPDX-License-Identifier: Apache-2.0

#!/bin/bash

if [ -d "code-tunnel" ]; then
echo "skipping download!"
else
echo "Installing Runner!" #Create folder and download zip
echo "Downloading Zip"
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli_alpine_x64_cli.tar.gz
echo "Extracting Zip"
mkdir -p code-tunnel
tar -xvf vscode_cli_alpine_x64_cli.tar.gz -C code-tunnel
echo "Removing Leftovers"
rm -rf vscode_cli_alpine_x64_cli.tar.gz # Extract package and remove leftovers
fi

tmux kill-session -t codetunnel || true
tmux new-session -d -s codetunnel
tmux send-keys -t codetunnel './code-tunnel/code tunnel --accept-server-license-terms' Enter
echo "Runner Started"

0 comments on commit fc004a5

Please sign in to comment.