Skip to content

Commit

Permalink
ci: use ubuntu 22.04 instead and handle params
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Oct 11, 2024
1 parent 7949b02 commit 897743a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:

jobs:
ci:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install Dependencies
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: sudo apt-get install gettext

- name: Build
run: make all
run: JOBS=1 MODE=html make all

- name: Deploy to gh page
uses: JamesIves/github-pages-deploy-action@v4.6.4
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 897743a

Please sign in to comment.