diff --git a/.cspell.config.yaml b/.cspell.config.yaml index 4e91dee24f..293e39f0c7 100644 --- a/.cspell.config.yaml +++ b/.cspell.config.yaml @@ -374,7 +374,6 @@ words: - venv - vfalco - vinnie - - vkeylet - wasmi - wasmparser - Werror @@ -398,3 +397,4 @@ words: - xxhasher - zstdio - CGNAT + - ungated diff --git a/.github/actions/release-info/action.yml b/.github/actions/release-info/action.yml index ab69a35f68..e03170b2c8 100644 --- a/.github/actions/release-info/action.yml +++ b/.github/actions/release-info/action.yml @@ -7,10 +7,10 @@ outputs: value: ${{ steps.version.outputs.version }} channel: description: "The release channel this build belongs to." - value: ${{ steps.channel.outputs.channel }} + value: ${{ steps.release_info.outputs.channel }} pkg_release: - description: "The package release number: 1 for a tag, the run number otherwise." - value: ${{ steps.pkg_release.outputs.pkg_release }} + description: "The package release number: 1 for a tag, .git otherwise." + value: ${{ steps.release_info.outputs.pkg_release }} runs: using: composite @@ -39,52 +39,6 @@ runs: echo "version=${version}" | tee -a "${GITHUB_OUTPUT}" - # Only a tag says how mature a build is: a push is a develop build whatever - # its version, and a non-public codebase keeps its packages to itself. - - name: Determine release channel - id: channel - shell: bash - env: - IS_TAG: ${{ startsWith(github.ref, 'refs/tags/') }} - REF_NAME: ${{ github.ref_name }} - VISIBILITY: ${{ github.event.repository.visibility }} - run: | - pre_release="" - if [[ "${REF_NAME}" == *-* ]]; then - pre_release="${REF_NAME#*-}" - fi - - if [[ "${VISIBILITY}" != "public" ]]; then - channel=private - elif [[ "${IS_TAG}" != "true" ]]; then - channel=develop - elif [[ -z "${pre_release}" ]]; then - channel=stable - elif [[ "${pre_release}" =~ ^rc[0-9]+(\+.*)?$ ]]; then - channel=rc - elif [[ "${pre_release}" =~ ^b(0|[1-9][0-9]*)(\+.*)?$ ]]; then - channel=beta - else - echo "Unsupported pre-release in tag '${REF_NAME}'. Use bN or rcN." >&2 - exit 1 - fi - - echo "channel=${channel}" | tee -a "${GITHUB_OUTPUT}" - - # A tag is packaged once, so its release number is fixed at 1. Develop builds - # repeat the same version, so the run number is what makes each push an - # upgrade rather than a reinstall. - - name: Determine package release - id: pkg_release - shell: bash - env: - IS_TAG: ${{ startsWith(github.ref, 'refs/tags/') }} - RUN_NUMBER: ${{ github.run_number }} - run: | - if [[ "${IS_TAG}" == "true" ]]; then - pkg_release=1 - else - pkg_release="${RUN_NUMBER}" - fi - - echo "pkg_release=${pkg_release}" | tee -a "${GITHUB_OUTPUT}" + - name: Determine release channel and package release + id: release_info + uses: XRPLF/actions/release-info@7cc0e4a8d9d0b838f92c48d312856b190341bbba diff --git a/.github/actions/setup-nix-env/action.yml b/.github/actions/setup-nix-env/action.yml index a95053e536..38b8365649 100644 --- a/.github/actions/setup-nix-env/action.yml +++ b/.github/actions/setup-nix-env/action.yml @@ -40,10 +40,11 @@ runs: # Unlike the Linux nix images, macOS needs no SSL_CERT_FILE: it has its # own trust store, and pinning would break TLS to hosts relying on it. - # Workspace-local, so `cleanup-workspace` clears it, but not the - # `.conan2` prepare-runner hands the system toolchain: that Conan is a - # different version, and the two would migrate each other's cache. - echo "CONAN_HOME=${{ github.workspace }}/.conan2-nix" >>"${GITHUB_ENV}" + # In RUNNER_TEMP, which the runner empties per job, like the `.conan2` + # prepare-runner hands the system toolchain - but under its own name: + # that Conan is a different version, and the two would migrate each + # other's cache. + echo "CONAN_HOME=${RUNNER_TEMP}/.conan2-nix" >>"${GITHUB_ENV}" # Config, profiles and remote, exactly as the dev shell sets them up on # entry; the `setup-conan` action is skipped for this toolchain. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 95d75c04b4..e0d511c467 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -18,7 +18,7 @@ If too broad, please consider splitting into multiple PRs. If there is a relevant task or issue, please link it here. --> -### Context of Change +## Context of Change -### API Impact +## API Impact