diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 98bac08..bab1efe 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,6 +1,6 @@ name: docs on: - pull_request: ~ + pull_request: push: branches: - main @@ -13,6 +13,10 @@ concurrency: cancel-in-progress: true group: ${{ github.workflow }}-${{ github.ref }} +defaults: + run: + shell: sh + jobs: documentation: name: Build docs on ${{ matrix.os }} @@ -20,7 +24,7 @@ jobs: strategy: matrix: - os: ["ubuntu-latest", "macos-latest"] + os: ["windows-latest"] steps: - uses: actions/checkout@v4 @@ -32,5 +36,6 @@ jobs: run: | cd docs && make check - name: Check Vale + #if: matrix.os != 'windows-latest' run: | cd test && make test diff --git a/common-build/rules.mk b/common-build/rules.mk index d39a4ba..bc03cc8 100644 --- a/common-build/rules.mk +++ b/common-build/rules.mk @@ -91,6 +91,12 @@ GIT_LOG_OUT_DIR = $(TELEMETRY_DIR)/git-log # Figure out the OS ifeq ($(findstring ;,$(PATH)),;) # Windows, but not POSIX environment + # Adjustments when running on Windows + ACTIVATE := $(ENV_DIR)/Scripts/activate + PYTHON := python.exe + SPHINXBUILD := $(ENV_DIR)/Scripts/sphinx-build.exe + SPHINXAUTOBUILD := $(ENV_DIR)/Scripts/sphinx-autobuild.exe + RST2HTML := $(ENV_DIR)/Scripts/rst2html.py else UNAME := $(shell uname 2>/dev/null || echo Unknown) UNAME := $(patsubst CYGWIN%,Windows,$(UNAME)) @@ -188,6 +194,13 @@ $(VALE): @ $(MAKE) install-vale-styles endif +# Vale installation for Windows +ifeq ($(UNAME),Windows) +$(VALE): + @ $(MAKE) install-vale PROGRAM=$(VALE_WIN) + @ $(MAKE) install-vale-styles +endif + # Core build commands and QA checks # =============================================================================