diff --git a/.github/workflows/haxe5.yml b/.github/workflows/haxe5.yml index 958414f9..6c63be9b 100644 --- a/.github/workflows/haxe5.yml +++ b/.github/workflows/haxe5.yml @@ -1,27 +1,16 @@ name: haxe 5 preview -# Not on pull requests: its failures are only warnings, and main runs it once -# a change lands +# Only when started by hand from the Actions tab: Haxe 5 is not a target while +# it is unreleased and still changing, so no push runs it on: - push: - branches: [main, 'release/**'] - paths-ignore: - - '**.md' - - 'docs/**' - - 'LICENSE.txt' - - '.github/ISSUE_TEMPLATE/**' workflow_dispatch: -# A newer push to the same branch or pull request supersedes the run in progress, -# except on main and release branches +# A newer run on the same branch supersedes the one in progress concurrency: - # Each push to main or a release branch is its own group, so every commit - # there gets a complete result; elsewhere the newest push wins - group: ${{ github.workflow }}-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) && github.sha) || github.ref }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -# Haxe 5 is not released, so its failures are warnings: with warn_only, a -# failing step leaves its job green, and the warnings job below lists the -# jobs that had one. Each failure still gets an issue, but it holds back +# Failures are warnings: with warn_only, a failing step leaves its job green, +# and the warnings job below lists the jobs that had one. They hold back # neither a merge nor a release (CONTRIBUTING.md). jobs: # Haxe 5.0.0-preview.1 passes API level 500 but generates code for the level diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e479679..bea3599f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -360,7 +360,7 @@ jobs: # The test suites on every platform with the stable Haxe; nightly.yml runs - # them with the Haxe nightly build once a day + # them with the Haxe nightly build when started by hand # They wait for the quick checks, so a header or GC define that does not # compile fails in a minute instead of after every platform has queued platforms: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 764ecfa0..25cf7e2b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,10 +1,9 @@ name: nightly -# The test suites with the Haxe nightly build, once a day and by hand. It does -# not gate releases, which check main's run: a regression in Haxe itself shows -# here without blocking one. +# The test suites with the Haxe nightly build, when started by hand from the +# Actions tab. Haxe 5 is not a target while it is unreleased and still +# changing, so this has no schedule. It does not gate releases, which check +# main's run. on: - schedule: - - cron: '0 6 * * *' workflow_dispatch: concurrency: diff --git a/.github/workflows/platforms.yml b/.github/workflows/platforms.yml index e595494a..da375782 100644 --- a/.github/workflows/platforms.yml +++ b/.github/workflows/platforms.yml @@ -1,6 +1,7 @@ name: platforms # The test suites on every platform, for one version of Haxe. main runs them -# with the stable Haxe on every change, and nightly with the Haxe nightly build. +# with the stable Haxe on every change, and nightly with the Haxe nightly build +# when started by hand. on: workflow_call: inputs: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89fae1d3..70aac932 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,8 +44,8 @@ Most of the collector's defines are not used by any default build, so code behin - Write one form of the code for every configuration when the cost is negligible: one type that holds the largest value any block size needs, not one type per define. Where a type must hold something derived from the block size, tie it to the block geometry with a `static_assert`. - A new or newly documented define comes with coverage: an entry in `test/gc-defines/check.sh` (or the equivalent build check for its area), a mode in the GC stress jobs in `.github/workflows/test.yml` when it changes how the collector runs, and a line in `docs/build_xml/Defines.md`. - A CI failure is fixed, or tracked as an issue and fixed, never merged around, even when `main` fails the same way. -- The Haxe 5 preview workflow is the exception: Haxe 5 is not released, so its failures are warnings. Each still gets an issue, but it holds back neither a merge nor a release. -- A pull request runs a smaller set: the quick checks, the sanitizers and the core suites on Linux 64, Windows 64 and macOS arm64. A push to `main` runs everything, Haxe 5 included, and what fails there after a merge is fixed or tracked the same way. To run everything before merging, run the main workflow on the branch from the Actions tab. +- Haxe 5 is the exception: it is not a target while it is unreleased and still changing. Its preview and nightly workflows run only when started by hand, and what fails there holds back neither a merge nor a release. +- A pull request runs a smaller set: the quick checks, the sanitizers and the core suites on Linux 64, Windows 64 and macOS arm64. A push to `main` runs everything, and what fails there after a merge is fixed or tracked the same way. To run everything before merging, run the main workflow on the branch from the Actions tab. ## Pull requests diff --git a/README.md b/README.md index a94b79dd..dc339447 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ libhxcpp is the runtime for the C++ target of the [Haxe](https://haxe.org/) comp - **More than 170 fixes and improvements on top of hxcpp 4.3.** Garbage collector correctness (moving GC heap corruption, `HXCPP_GC_BIG_BLOCKS`, threads that start or end during a collection), memory-safety bugs reachable from plain Haxe code, sockets and TLS (mbedTLS 3.6 LTS, TLS 1.3, session resumption), MySQL 8 and SQLite, string and number formatting that matches the other Haxe targets, and faster maps, strings, sorting and cppia. [Changes.md](Changes.md) lists them all. - **Tested releases.** A release is cut deliberately from a commit CI has tested, and ships with the build tool and the cppia host prebuilt for Windows, macOS and Linux. -- **Broad CI.** Every change runs the test suites on Windows (32 and 64-bit), macOS (x86_64 and Arm64) and Linux (32 and 64-bit) with Haxe 4.3.7, runs the GC tests with big blocks, compiles the GC under 32 define configurations at both block sizes, and checks installing with haxelib. The same suites run against the Haxe nightly build once a day. +- **Broad CI.** Every change runs the test suites on Windows (32 and 64-bit), macOS (x86_64 and Arm64) and Linux (32 and 64-bit) with Haxe 4.3.7, runs the GC tests with big blocks, compiles the GC under 32 define configurations at both block sizes, and checks installing with haxelib. - **Open development.** Issues and pull requests are welcome. ## Performance @@ -133,7 +133,7 @@ libhxcpp keeps hxcpp's build XML, defines and API, and works with the code Haxe | Haxe | libhxcpp 6 | | --- | --- | | 4.2 and 4.3 | Supported. Every change is tested with 4.3.7 | -| 5.0.0-preview.1 | Supported. Every change runs libhxcpp's suites and Haxe's own unit tests with it on Linux, and the core suites on Windows and macOS | +| 5.0.0-preview.1 | Not a target while Haxe 5 is unreleased. The runtime keeps what it has for it, but changes are not tested with it; its suites run only when started by hand | | 5 nightly builds | Not supported. libhxcpp supports Haxe 5 releases, and nightlies change between them | | Older than 4.2 | Not supported. The build stops and says so |