Skip to content

Commit

Permalink
Merge pull request #57 from sounddrill31/paid-queue
Browse files Browse the repository at this point in the history
Add support for "aosp-silver"
  • Loading branch information
sounddrill31 authored Oct 30, 2024
2 parents a5028da + 6c01889 commit 1661fa5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,15 +428,20 @@ jobs:
cd $PROJECTFOLDER
if [ "${{ github.event.inputs.CLEAN_BUILD }}" == "yes" ]; then
export CLEAN="clean"
export CLEAN="--clean"
fi
if [[ -n "${{ secrets.PAID }}" ]]; then
echo "Paid Build... Tokens will be consumed."
export PAID="--platform aosp-silver"
fi
echo "Build is queued! Please wait for your build to start."
echo "Check foss.crave.io Dashboard to see builds"
echo "Running build's log will show up here!"
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch --${CLEAN} "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch ${PAID} ${CLEAN} -- "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
$LOCAL_MANIFEST && \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,15 +463,20 @@ jobs:
jq '.projects = []' ~/crave.conf > tmp && mv tmp ~/crave.conf
if [ "${{ github.event.inputs.CLEAN_BUILD }}" == "yes" ]; then
export CLEAN="clean"
export CLEAN="--clean"
fi
if [[ -n "${{ secrets.PAID }}" ]]; then
echo "Paid Build... Tokens will be consumed."
export PAID="--platform aosp-silver"
fi
echo "Build is queued! Please wait for your build to start."
echo "Check foss.crave.io Dashboard to see builds"
echo "Running build's log will show up here!"
crave run --no-patch --${CLEAN} "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch ${PAID} ${CLEAN} -- "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
$LOCAL_MANIFEST && \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/twrp-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,20 @@ jobs:
cd $PROJECTFOLDER
if [ "${{ github.event.inputs.CLEAN_BUILD }}" == "yes" ]; then
export CLEAN="clean"
export CLEAN="--clean"
fi
if [[ -n "${{ secrets.PAID }}" ]]; then
echo "Paid Build... Tokens will be consumed."
export PAID="--platform aosp-silver"
fi
echo "Build is queued! Please wait for your build to start."
echo "Check foss.crave.io Dashboard to see builds"
echo "Running build's log will show up here!"
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch --${CLEAN} "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch ${PAID} ${CLEAN} -- "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
$LOCAL_MANIFEST && \
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/twrp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,20 @@ jobs:
cd $PROJECTFOLDER
if [ "${{ github.event.inputs.CLEAN_BUILD }}" == "yes" ]; then
export CLEAN="clean"
export CLEAN="--clean"
fi
if [[ -n "${{ secrets.PAID }}" ]]; then
echo "Paid Build... Tokens will be consumed."
export PAID="--platform aosp-silver"
fi
echo "Build is queued! Please wait for your build to start."
echo "Check foss.crave.io Dashboard to see builds"
echo "Running build's log will show up here!"
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch --${CLEAN} "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
crave ${{ secrets.CRAVE_FLAGS }} run --no-patch ${PAID} ${CLEAN} -- "rm -rf .repo/local_manifests/ ${{ github.event.inputs.REMOVALS }} && \
# Clone local_manifests repository
$BUILD_DIFFERENT_ROM ; \
$LOCAL_MANIFEST && \
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ Here, we enter our repo init command for a non-supported ROM. If we are building

Doing this is not recommended and is known to be troublesome. However, it doesn't break any crave rules yet.

### Paid Queue

To use your crave wallet with one of these projects, just set a secret called "PAID" without the quotes with any data(like "true")

To know more about wallets, read this:

https://opendroid.pugzarecute.com/wiki/Crave_Devspace#paid-queue

https://foss.crave.io/docs/wallets/


### Build Signing
Q4. How do I sign my builds?

Expand Down

0 comments on commit 1661fa5

Please sign in to comment.