Skip to content

Commit

Permalink
chore: update workflow_config.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed Feb 19, 2024
1 parent 1404177 commit 4206cfb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,13 @@ runs:
IFS='/' read -r -a array <<< "${{ inputs.config }}"
TYPE="${array[0]}"
SBC="${array[1]}"
echo "TYPE=${TYPE}" | tee -a "$GITHUB_OUTPUT"
echo "SBC=${SBC}" | tee -a "$GITHUB_OUTPUT"
echo "TYPE=${TYPE}" >> "$GITHUB_OUTPUT"
echo "SBC=${SBC}" >> "$GITHUB_OUTPUT"
if [[ "${TYPE}" = "raspberry" ]]; then
TYPE_CONFIG="rpi-defaults.conf"
else
TYPE_CONFIG="${TYPE}-defaults.conf"
fi
echo "DEBUG: TYPE_CONFIG=$TYPE_CONFIG"
BOARD_CONFIG=${SBC}.conf
echo "DEBUG: BOARD_CONFIG=${SBC}.conf"
echo "::endgroup::"
echo "::group::Generate CustomPIOS config file"
CONFIG_BASE_DIR="./repository/config"
Expand Down Expand Up @@ -111,9 +107,8 @@ runs:
echo "::group::Generate Step output"
source "${CONFIG_PATH}"
echo "DEBUG:"
echo "DOWNLOAD_URL_CHECKSUM=${DOWNLOAD_URL_CHECKSUM}" | tee -a "$GITHUB_OUTPUT"
echo "DOWNLOAD_URL_IMAGE=${DOWNLOAD_URL_IMAGE}" | tee -a "$GITHUB_OUTPUT"
echo "DOWNLOAD_URL_CHECKSUM=${DOWNLOAD_URL_CHECKSUM}" >> "$GITHUB_OUTPUT"
echo "DOWNLOAD_URL_IMAGE=${DOWNLOAD_URL_IMAGE}" >> "$GITHUB_OUTPUT"
echo "::endgroup::"
if [[ "${TYPE}" != "raspberry" ]]; then
base_zip_img_helper
Expand All @@ -131,6 +126,7 @@ runs:
id: checksum
shell: bash
run: |
echo "::group::Get base image checksum"
cd repository/src/image
FILENAME=$(basename ${{ steps.config.outputs.DOWNLOAD_URL_CHECKSUM }})
wget -O ${FILENAME} ${{ steps.config.outputs.DOWNLOAD_URL_CHECKSUM }}
Expand All @@ -139,6 +135,7 @@ runs:
echo "CHECKSUM=${CHECKSUM}" >> $GITHUB_OUTPUT
echo "FILENAME=${FILENAME}" >> $GITHUB_OUTPUT
echo "::endgroup::"
- name: Cache Base Source Image
id: cache
Expand Down Expand Up @@ -171,7 +168,8 @@ runs:

- name: Build Image
shell: bash
run: sudo modprobe loop && cd repository/src && sudo bash -x ./build_dist
run: |
sudo modprobe loop && cd repository/src && sudo bash -x ./build_dist
- name: Cleanup workspace & fix permissions
if: success()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflow_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ release:
# Orange Pi OS based images
- orangepi/orangepi_zero2
# Raspberry Pi OS based images
- raspberry/rpi32
- raspberry/rpi64
- raspberry/rpi-32bit
- raspberry/rpi-64bit

0 comments on commit 4206cfb

Please sign in to comment.