Repository navigation
Build the developer environment with wf itself [#315] #341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ee80d93
Build the developer environment with wf run from the pinned bootstrap…
ambroise-leclerc 78b71b2
Test the self-build, publish without Node.js and document the migrati…
ambroise-leclerc 1c65717
Run the publication shell scripts with bash and mark them executable …
ambroise-leclerc 103b30c
Refuse an unreadable manifest before archiving, and stage into a site…
ambroise-leclerc 3d6e8b9
Keep LF in the wf scripts, manifest and lock on Windows [#315]
ambroise-leclerc 2eab569
Give each browser test group its own profile, so that two versions of…
ambroise-leclerc b6b6d5f
Trigger the developer packages workflow on its local actions [#315]
ambroise-leclerc c5c55b6
Check the pin against the base URL it was published under; fix two do…
ambroise-leclerc 6cf7822
Bound the duration of the developer packages jobs [#315]
ambroise-leclerc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Remove Node.js | ||
| description: >- | ||
| Deletes node, nodejs, npm, npx and corepack from the runner (an ephemeral machine), then checks that none is reachable: | ||
| the steps that follow are the proof that a path needs no Node.js. | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Remove Node.js, npm and npx | ||
| shell: bash | ||
| run: | | ||
| for tool in node nodejs npm npx corepack; do | ||
| while path=$(command -v "$tool"); do | ||
| sudo rm -f "$path" || exit 1 | ||
| hash -r | ||
| done | ||
| done | ||
| for tool in node nodejs npm npx; do | ||
| if command -v "$tool"; then | ||
| echo "::error::$tool is still reachable" | ||
| exit 1 | ||
| fi | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Build the wf driver | ||
| description: >- | ||
| Builds webfront-wf (WebKitGTK frontend), the non-interactive driver of the WebFront developer environment, from the | ||
| bootstrap environment pinned by cmake/WebFrontBootstrap.cmake, and installs a `wf` command that runs a wf command on the | ||
| project at the root of the workspace. Node.js is neither used nor required (WEBFRONT_REQUIRE_NODE=OFF). | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: ./.github/actions/setup-cmake | ||
| with: | ||
| version: '4.4.4' | ||
| # Ubuntu 26.04 ships GCC 16 in its main archive. The image already provides Ninja, pkg-config and Xvfb. | ||
| - name: Install GCC 16 and WebKitGTK | ||
| shell: bash | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends -o Acquire::Retries=3 gcc-16 g++-16 libwebkitgtk-6.0-dev | ||
| echo "CC=gcc-16" >> "$GITHUB_ENV" | ||
| echo "CXX=g++-16" >> "$GITHUB_ENV" | ||
| - name: Build webfront-wf | ||
| shell: bash | ||
| run: | | ||
| cmake -S . -B build-driver -G Ninja -DCMAKE_BUILD_TYPE=Release -DWEBFRONT_EMBED_CEF=OFF -DENABLE_TESTING=ON \ | ||
| -DWEBFRONT_REQUIRE_NODE=OFF -DWEBFRONT_EMBED_WEBKITGTK=ON -DWEBFRONT_WEBTEST_FRONTEND=WebKitGTK \ | ||
| -DCMAKE_CXX_SCAN_FOR_MODULES=OFF | ||
| cmake --build build-driver --target webfront-wf --parallel 2 | ||
| - name: Install the wf command | ||
| shell: bash | ||
| run: | | ||
| bin="$RUNNER_TEMP/wf-bin" | ||
| mkdir -p "$bin" | ||
| # The sandbox opt-out is confined to this driver, which runs trusted sources and a verified environment. | ||
| cat > "$bin/wf" <<SCRIPT | ||
| #!/usr/bin/env bash | ||
| # Messages.hpp prints its encoding trace to the standard output: it is not part of a command's result. | ||
| export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 | ||
| xvfb-run -a "$GITHUB_WORKSPACE/build-driver/test/web/webfront-wf" --project "$GITHUB_WORKSPACE" "\$@" 2>&1 \\ | ||
| | grep --line-buffered -v -e '^-> encoded to string of size' -e '^bufferIndex = ' | ||
| exit "\${PIPESTATUS[0]}" | ||
| SCRIPT | ||
| chmod +x "$bin/wf" | ||
| echo "$bin" >> "$GITHUB_PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.