Skip to content

Commit

Permalink
fallback default python
Browse files Browse the repository at this point in the history
  • Loading branch information
aceisace authored Feb 14, 2024
1 parent cdc1c80 commit 96bb844
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/update-os.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: update OS
name: build

on:
workflow_dispatch:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 96bb844

Please sign in to comment.