diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e38454cb..44d1b72b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,6 +151,9 @@ jobs: release-builds: uses: ./.github/workflows/release-build.yml + with: + CARGO_PROFILE_RELEASE_LTO: no + CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1024 # Dummy job to have a stable name for the "all tests pass" requirement tests-pass: diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index e8a8dc73..507cd373 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -8,6 +8,14 @@ on: description: "Set to the release metadata JSON to publish the release" required: false type: string + CARGO_PROFILE_RELEASE_LTO: + description: "Set to override default release profile lto settings" + required: false + type: string + CARGO_PROFILE_RELEASE_CODEGEN_UNITS: + description: "Set to override default release profile codegen-units settings" + required: false + type: string env: CARGO_TERM_COLOR: always @@ -54,6 +62,14 @@ jobs: - run: just toolchain rust-src - run: just ci-install-deps + - name: Override release profile lto settings + if: inputs.CARGO_PROFILE_RELEASE_LTO + run: echo "CARGO_PROFILE_RELEASE_LTO=${{ inputs.CARGO_PROFILE_RELEASE_LTO }}" >> "$GITHUB_ENV" + + - name: Override release profile codegen-units settings + if: inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS + run: echo "CARGO_PROFILE_RELEASE_CODEGEN_UNITS=${{ inputs.CARGO_PROFILE_RELEASE_CODEGEN_UNITS }}" >> "$GITHUB_ENV" + - run: just package - if: runner.os == 'Windows' run: Get-ChildItem packages/