Skip to content

Commit

Permalink
Add checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 30, 2023
1 parent 0d672d6 commit 3e6fd77
Showing 1 changed file with 50 additions and 7 deletions.
57 changes: 50 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,57 @@ inputs:
required: false
default: ""

armbian_pgp_key:
description: "Armbian PGP key"
required: false
default: ""

armbian_pgp_password:
description: "Armbian PGP password"
required: false
default: ""

runs:
using: "composite"

steps:

- name: "Import GPG key"
if: ${{ inputs.armbian_pgp_key != '' }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ inputs.armbian_pgp_key }}
passphrase: ${{ inputs.armbian_pgp_password }}

- name: "Checkout Armbian os"
uses: actions/checkout@v4
with:
repository: armbian/os
fetch-depth: 0
clean: false
path: os

- name: "Checkout Armbian build framework"
uses: actions/checkout@v4
with:
repository: armbian/build
fetch-depth: 0
clean: false
path: build

- name: "Checkout customisations"
uses: actions/checkout@v4
with:
fetch-depth: 0
clean: false
path: custom

- shell: bash
run: |
# read version from upstream Armbian OS
cat os/stable.json | jq '.version' | sed "s/\"//g" | sed 's/^/ARMBIAN_VERSION=/' >> $GITHUB_ENV
- shell: bash
run: |
Expand All @@ -75,11 +122,11 @@ runs:
[[ "${{ inputs.armbian_target }}" == image ]] && unset BUILD_TARGET
# go to build folder
cd ${GITHUB_ACTION_PATH}
cd build
# execute build command
./compile.sh "${BUILD_TARGET}" \
REVISION="${{ inputs.armbian_version }}" \
REVISION="${{ env.ARMBIAN_VERSION }}" \
BOARD="${{ inputs.armbian_board }}" \
BRANCH="${{ inputs.armbian_branch }}" \
RELEASE="${{ inputs.armbian_release }}" \
Expand All @@ -93,11 +140,7 @@ runs:
ENABLE_EXTENSIONS="${{ inputs.armbian_extensions }}" \
COMPRESS_OUTPUTIMAGE="${{ inputs.armbian_compress }}" \
SHARE_LOG="yes" \
EXPERT="yes" \
PREFER_DOCKER="no"
# save path
echo "ARMBIAN_SCRIPT_PATH=${GITHUB_ACTION_PATH}" >> $GITHUB_ENV
EXPERT="yes"
branding:
icon: "check"
Expand Down

0 comments on commit 3e6fd77

Please sign in to comment.