Skip to content

Test Build Package

Test Build Package #35

name: Test Build Package
on:
workflow_dispatch:
inputs:
extension:
description: 'Build Extension Script'
required: true
default: ext-debian.sh
package-name:
description: 'Package Name'
required: true
package-url:
description: 'Package URL (public git)'
required: true
package-ref:
description: 'Package Ref (branch, tag, or hash)'
required: true
codename:
description: 'Package Codename (focal, bullseye)'
required: true
build-os-image:
description: 'Build package on (ubuntu-22.04)'
required: true
default: ubuntu-20.04
jobs:
build:
runs-on: ${{ github.event.inputs.build-os-image }}
steps:
- uses: actions/checkout@v3
- name: Env Setup
id: init
run: |
sudo apt update
sudo apt install -y devscripts reprepro
mkdir -p ~/.gnupg/
printf "${{ secrets.PACKAGE_PRIVATE_KEY2 }}" | base64 --decode > ~/.gnupg/private.key
gpg --batch --import ~/.gnupg/private.key
- name: Build Test Package
id: build
run: |
set -x
export [email protected]
export DEBFULLNAME="Regolith Linux"
extension=${{ github.workspace }}/.github/scripts/${{ github.event.inputs.extension }}
package_name=${{ github.event.inputs.package-name }}
package_url=${{ github.event.inputs.package-url }}
package_ref=${{ github.event.inputs.package-ref }}
codename=${{ github.event.inputs.codename }}
${{ github.workspace }}/.github/scripts/local-build.sh \
${{ github.workspace }} \
$extension \
$package_name \
$package_url \
$package_ref \
$codename