From 587adf237878d2eb4af82cc87633b59f2a27bc7b Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Fri, 11 Oct 2024 06:19:56 +0800 Subject: [PATCH] ci: use ubuntu 22.04 instead and handle params --- .github/workflows/ci.yml | 4 ++-- .github/workflows/deploy-gh-page.yml | 2 +- Makefile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f96ff72e0..dae76878a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: jobs: ci: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -13,4 +13,4 @@ jobs: run: sudo apt-get install gettext - name: Validate - run: VERSION=${{ github.event.repository.default_branch }} MODE=dummy make all + run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all diff --git a/.github/workflows/deploy-gh-page.yml b/.github/workflows/deploy-gh-page.yml index 3ccd22d104..3332208dad 100644 --- a/.github/workflows/deploy-gh-page.yml +++ b/.github/workflows/deploy-gh-page.yml @@ -15,7 +15,7 @@ jobs: run: sudo apt-get install gettext - name: Build - run: make all + run: JOBS=4 MODE=html make all - name: Deploy to gh page uses: JamesIves/github-pages-deploy-action@v4.6.4 diff --git a/Makefile b/Makefile index db5116d478..f255eb901d 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,8 @@ SPHINX_CONF := $(CPYTHON_CLONE)/Doc/conf.py LANGUAGE := zh_TW LC_MESSAGES := $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES VENV := ~/.venvs/python-docs-i18n/ -MODE := autobuild-dev-html -JOBS := 4 +MODE := $(or $(MODE), autobuild-dev-html) +JOBS := $(or $(JOBS), auto) .PHONY: all all: prepare_deps ## Automatically build an html local version pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy