Skip to content

Commit

Permalink
Use ubuntu for docs workflow
Browse files Browse the repository at this point in the history
We were using an arch container inside ubuntu for the workflow,
with this change we'll be using ubuntu directly to build and deploy
the docs.

Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
  • Loading branch information
chimosky committed Apr 5, 2024
1 parent d653ed3 commit 16a5a15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
container:
image: 'archlinux:latest'

runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
# assume yes and do not ask for confirmation when installing deps using pacman
yes | pacman -Syu base-devel sudo git wget curl python-sphinx rsync python-virtualenv --noconfirm
apt update
apt install -y build-essential sudo git wget curl python3-sphinx rsync
# install sugar-toolkit-gtk3 dependencies
apt install -y python-all-dev python3-all-dev libgtk-3-dev
apt install -y libgdk-pixbuf2.0-dev libsm-dev libice-dev librsvg2-dev
apt install -y libxfixes-dev libxi-dev libx11-dev gettext intltool
apt install -y libxml-parser-perl x11proto-core-dev libasound2-dev
apt install -y libgirepository1.0-dev linux-libc-dev
- uses: actions/checkout@v4
with:
Expand Down
21 changes: 0 additions & 21 deletions ci/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@ show-green () {
echo -e "${GREEN} ==> ${1} ${NC}"
}

# build package from the AUR (arch user repository)
if command -v makepkg &> /dev/null
then
# sphinx extensions
python3 -m venv env
env/bin/pip install sphinxcontrib-napoleon

show-green "Cloning sugar-toolkit-gtk3-git from AUR"
mkdir .cache
cd .cache
git clone https://aur.archlinux.org/sugar-toolkit-gtk3-git.git
cd sugar-toolkit-gtk3-git
makepkg -sif --noconfirm
show-green "Installing optional dependencies"
yes | sudo pacman -S --needed $(cat .SRCINFO| grep 'optdepends' | grep -o '= .*:' | sed 's,= ,,g' | sed 's,:,,g') --noconfirm
cd ../..
show-green "Dependencies synced, packages built"

fi


# make source
show-green "Compiling"
./autogen.sh --with-python3
Expand Down

0 comments on commit 16a5a15

Please sign in to comment.