Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
9884585
First test.
Jul 29, 2026
f07d7cc
Comentários necessários?
Jul 29, 2026
89e8bcf
Não, o problema era run: ... com uses:?
Jul 29, 2026
2005c58
Documentação do actions/checkout invalida?
Jul 29, 2026
bcb63f5
Doc válida, mas onde estamos?
Jul 29, 2026
adbbad0
Doc válida, mas onde estamos?
Jul 29, 2026
64842fc
Checkout Inception, the movie
Jul 29, 2026
c98a469
only to be sure...
Jul 29, 2026
6675834
only to be sure... 2
Jul 29, 2026
21c1efe
only to be sure... 3
Jul 29, 2026
e021494
only to be sure... 3
Jul 29, 2026
bc500e3
only to be sure... 5
Jul 29, 2026
4f52f66
only to be sure... 6
Jul 29, 2026
14d7ce7
Finally, merge tests
Jul 29, 2026
5770f0d
Now with squash merge
Jul 29, 2026
59fec93
Fixing checkout master
Jul 29, 2026
f6ffce2
Fixing pathspec not know, take 1
Jul 29, 2026
48073bc
Fixing pathspec not know, take 2
Jul 29, 2026
0b21f31
Fixing pathspec not know, take 3
Jul 29, 2026
6ddcc65
Fixing pathspec not know, take 4
Jul 29, 2026
fbcf206
Trying to pull everything, take 1
Jul 29, 2026
a0a71f7
Minimization, take 1
Jul 29, 2026
0f52363
Minimization, take 2
Jul 29, 2026
423d97c
Minimization, take 3
Jul 29, 2026
128afd3
Minimization, take 4
Jul 29, 2026
4883cb0
Minimization, take 5
Jul 29, 2026
fa92ba2
Minimization, take 6
Jul 29, 2026
6d09b9d
Minimization, take 7
Jul 29, 2026
9a81a13
GH git does not like show-ref -d --tags
Jul 29, 2026
74b1527
Knowing know refs/names
Jul 29, 2026
9aa60fc
Clean ups
Jul 29, 2026
e95d6ed
More clean ups
Jul 29, 2026
16362e9
More more clean ups
Jul 29, 2026
7c5fafb
Clean up, test without fetch- params
Jul 29, 2026
272c37e
without fetch- fail, and with, but without git fetch?
Jul 29, 2026
155d50d
Minimized.
Jul 29, 2026
b5a78b5
Set anonymous ident, so merge --squash does not fail
Aug 5, 2026
c885fb5
Add a second test, trying to minimize the git command
Aug 5, 2026
ecfe89b
Add a third test, as --no-commit is suspect
Aug 5, 2026
da903e3
Extra -c
Aug 5, 2026
b34c905
Minimized
Aug 5, 2026
5183286
Alternative in plain git
Aug 8, 2026
2f9f2d8
fix
Aug 8, 2026
728263e
repo url
Aug 8, 2026
946abaf
Minimization
Aug 8, 2026
90ca91b
Clean up
Aug 8, 2026
5258d6d
Separate old and new
Aug 8, 2026
87bb25e
Fixes
Aug 8, 2026
3719ef9
verbosity
Aug 8, 2026
1f7f268
verbosity
Aug 8, 2026
9653b30
trying to recreate identical result
Aug 8, 2026
1924ec2
Identical message
Aug 8, 2026
ee87668
Minimize
Aug 8, 2026
b0093e6
faster?
Aug 8, 2026
24f0fc6
Docs and done
Aug 8, 2026
02f7da4
Make stuckness more visible
Aug 10, 2026
b00891c
Faster?
Aug 10, 2026
c7f09b2
Add fetch
Aug 10, 2026
5ae2b80
Without depth and without fetch
Aug 10, 2026
0174f4d
Without depth and with fetch
Aug 10, 2026
67537b6
Inline docs, performance tests
Aug 11, 2026
2176571
More performance tests
Aug 11, 2026
a02e84c
Docs, performance.
Aug 11, 2026
7780dba
More idiomatic en
Aug 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://docs.github.com/en/actions.

name: Build

on:
Expand All @@ -13,28 +13,33 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
# See https://github.com/actions/checkout.
- name: Checkout doc-pt_br
uses: actions/checkout@v3

- name: Checkout doc-base
uses: actions/checkout@v7
with:
path: pt_br
repository: php/doc-base
path: doc-base

- name: Checkout doc-en
uses: actions/checkout@v3
uses: actions/checkout@v7
with:
repository: php/doc-en
path: en

- name: Checkout doc-base
uses: actions/checkout@v3
- name: Checkout doc-pt_br (actions/checkout)
uses: actions/checkout@v7
with:
repository: php/doc-base
path: doc-base
path: pt_br

- name: Build manual.xml
run: |
php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=pt_br 2>&1
echo
sha1sum doc-base/temp/manual.xml

- name: Quality Assurance scripts
run: php doc-base/scripts/qa/extensions.xml.php --check
# GH actions/checkout automatically merges, but tends to get stuck in the past.

- name: Build documentation for pt_br
run: php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=pt_br
- name: actions/checkout merged where?
run: |
git -C pt_br log --oneline --no-decorate -n10
75 changes: 75 additions & 0 deletions .github/workflows/buildxml.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

name: Build XML

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Run configure
runs-on: ubuntu-latest
steps:

# Shallow clone default branch and merge the PR using only plain git
#
# - clone --depth=1 downloads the same data as actions/checkout;
# - clone --single-branch filter only the default branch;
# - github.event.pull_request.head.sha maps to the PR tip, not merged.
#
# Avoids getting stuck in the past, like GH actions/checkout does, and
# we do not need any other stuff for building the manual. The results
# of workflow re-runs always match with results of normal or squashed
# merges of pull requests, immediately after a workflow re-run.
#
# To be pedantic clear, Github's pull requests calculate and *caches*
# the merge points of PRs, *only* at the PR's "synchronize" event.
# That does *not* include changes on master/main *or* workflows re-runs.
# So, in busy repositories, the results of CI checks are almost always
# outdated and invalid, not representing the future state of the default
# branch after the pull request is merged. Re-running workflows also
# changes nothing.
#
# Does not work:
# - clone --depth=1 and merge from PR SHA, with or without fetch by SHA;
# - clone --single-branch and merge from PR SHA, without fetch by SHA.
#
# In theory, using --filter=tree:0 or --filter=blob:none on clone of the
# PR branch would be faster, and avoid an extra git fetch on PR tip.
# But they cause subsequent piecewise downloads of blob data, both on
# default and feature branches, that appear to be slower in sub-gigabyte
# repositories than simply cloning with --single-branch and fetching the
# PR tip in one go.

- name: Set up files
run: |
# Checkout repositories
set -x
git clone -q --depth=1 https://github.com/php/doc-base.git doc-base
git clone -q --depth=1 https://github.com/php/doc-en.git en
git clone -q --single-branch https://github.com/php/doc-pt_br.git pt_br

- name: Merge pull request
run: |
# Plain git merge
cd pt_br

git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
mainsha=$(git rev-parse HEAD)
message="Merge ${{ github.event.pull_request.head.sha }} into ${mainsha}"

echo $message
set -x
git fetch -q --no-tags --prune --no-recurse-submodules origin ${{ github.event.pull_request.head.sha }}
git merge -q --no-edit ${{ github.event.pull_request.head.sha }}

- name: Build manual.xml
run: |
php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=pt_br 2>&1
echo
sha1sum doc-base/temp/manual.xml
Loading