Skip to content

Commit 587adf2

Browse files
committed
ci: use ubuntu 22.04 instead and handle params
1 parent 7949b02 commit 587adf2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: .github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55

66
jobs:
77
ci:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
1010
- uses: actions/checkout@v4
1111

1212
- name: Install Dependencies
1313
run: sudo apt-get install gettext
1414

1515
- name: Validate
16-
run: VERSION=${{ github.event.repository.default_branch }} MODE=dummy make all
16+
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all

Diff for: .github/workflows/deploy-gh-page.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: sudo apt-get install gettext
1616

1717
- name: Build
18-
run: make all
18+
run: JOBS=4 MODE=html make all
1919

2020
- name: Deploy to gh page
2121
uses: JamesIves/[email protected]

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ SPHINX_CONF := $(CPYTHON_CLONE)/Doc/conf.py
4343
LANGUAGE := zh_TW
4444
LC_MESSAGES := $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
4545
VENV := ~/.venvs/python-docs-i18n/
46-
MODE := autobuild-dev-html
47-
JOBS := 4
46+
MODE := $(or $(MODE), autobuild-dev-html)
47+
JOBS := $(or $(JOBS), auto)
4848

4949
.PHONY: all
5050
all: prepare_deps ## Automatically build an html local version

0 commit comments

Comments
 (0)