Skip to content

Update build.sh

Update build.sh #299

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
build_variant:
description: 'Build variant to test'
default: 'treble_arm64_bgN'
required: false
type: string
push:
branches:
- android-14.0
paths-ignore:
- '.github/**'
- 'config/**'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Build Variant
run: echo "BUILD_VARIANT=${{ inputs.build_variant || 'treble_arm64_bgN' }}" >> $GITHUB_ENV
- name: Build Image
run: docker build -f build/Dockerfile -t imbroglius/treble .
- name: Get Keys
uses: actions/checkout@v4
with:
repository: imbroglius/vendor_daniel-priv
token: ${{ secrets.IMBROGLIOTOKEN }}
path: vendor_daniel-priv
- name: Build ROM
run: |
mkdir builds
docker run --rm \
--privileged \
--name test \
--volume ${{ github.workspace }}/builds:/root/builds \
--volume ${{ github.workspace }}/vendor_daniel-priv:/aosp/vendor/daniel-priv \
imbroglius/treble treblebuild ${{ env.BUILD_VARIANT }}
- name: Upload ROM
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_VARIANT }}
path: builds/*.xz