From 96bb8448c2a7d520cd614f9386b628e7f13ab582 Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 14 Feb 2024 09:21:49 +0100 Subject: [PATCH] fallback default python --- .github/workflows/update-os.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/update-os.yml b/.github/workflows/update-os.yml index 269aa89..c140e69 100644 --- a/.github/workflows/update-os.yml +++ b/.github/workflows/update-os.yml @@ -1,4 +1,4 @@ -name: update OS +name: build on: workflow_dispatch: @@ -23,9 +23,8 @@ jobs: with: # Set the base_image to the desired Raspberry Pi OS version base_image: https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2023-05-03/2023-05-03-raspios-bullseye-armhf-lite.img.xz - image_additional_mb: 3072 # enlarge free space to 3 GB + image_additional_mb: 2560 # enlarge free space to 2.5 GB optimize_image: true - user: inky commands: | cd /home sudo useradd -m -p "$(openssl passwd -1 $INKY_INITAL_PASSWORD)" inky @@ -36,18 +35,8 @@ jobs: cd /home/inky sudo apt-get update -y - # add python3.11. Python3.12 currently has some issues with matplotlib - wget -q https://www.python.org/ftp/python/3.11.8/Python-3.11.8.tgz - sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev -y - tar -xzf Python-3.11.8.tgz - cd Python-3.11.8/ - ./configure --enable-optimizations - sudo make altinstall > /dev/null 2>&1 - sudo rm /usr/bin/python - sudo ln -s /usr/local/bin/python3.12 /usr/bin/python - sudo apt-get install -y python3-pip - sudo apt-get install zlib1g libjpeg-dev libatlas-base-dev rustc libopenjp2-7 python3-dev scons libssl-dev python3-venv python3-pip git libfreetype6-dev wkhtmltopdf libopenblas-dev libtiff5-dev -y + sudo apt-get install zlib1g libjpeg-dev libatlas-base-dev rustc libopenjp2-7 python3-dev scons libssl-dev python3-venv python3-pip git libfreetype6-dev wkhtmltopdf libopenblas-dev -y echo $PWD && ls git clone https://github.com/aceinnolab/Inkycal cd Inkycal