From 6e85c7f5812afdd72d476c4050b07932135a1e5c Mon Sep 17 00:00:00 2001 From: Luke Boswell Date: Tue, 28 Jul 2026 11:52:00 +1000 Subject: [PATCH] Pin releases to the latest Roc nightly --- .github/workflows/deploy-docs.yml | 2 +- .github/workflows/release.yml | 17 +++++++++++++---- CONTRIBUTING.md | 4 ++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 36bb2140..b50e6aa2 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -37,7 +37,7 @@ jobs: uses: actions/configure-pages@v6 - name: Install Roc - uses: roc-lang/setup-roc@bd311e2fb815a3d2255f7ee14a922f0b736e020b + uses: roc-lang/setup-roc@cbe782d6f165b89c87d99f50a59ac4f5f73b4427 # ratchet:roc-lang/setup-roc@v0.3.0 with: version: nightly-new-compiler diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a75d4db..aa5e76f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,11 @@ concurrency: group: ${{ github.event_name == 'workflow_dispatch' && format('release-{0}', github.repository) || format('release-validate-{0}-{1}', github.repository, github.ref) }} cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }} +# Release artifacts must be reproducible. Daily CI intentionally follows the +# moving nightly channel and this pin is advanced after that toolchain is green. +env: + ROC_NIGHTLY_TAG: nightly-2026-July-27-f4b3c60 + jobs: rust-version: name: read Rust version @@ -111,9 +116,10 @@ jobs: fetch-depth: 0 - name: Install Roc - uses: roc-lang/setup-roc@bd311e2fb815a3d2255f7ee14a922f0b736e020b + uses: roc-lang/setup-roc@cbe782d6f165b89c87d99f50a59ac4f5f73b4427 # ratchet:roc-lang/setup-roc@v0.3.0 with: version: nightly-new-compiler + nightly-tag: ${{ env.ROC_NIGHTLY_TAG }} - name: Install Zig uses: mlugg/setup-zig@8d6198c65fb0feaa111df26e6b467fea8345e46f @@ -211,9 +217,10 @@ jobs: uses: actions/checkout@v7 - name: Install Roc - uses: roc-lang/setup-roc@bd311e2fb815a3d2255f7ee14a922f0b736e020b + uses: roc-lang/setup-roc@cbe782d6f165b89c87d99f50a59ac4f5f73b4427 # ratchet:roc-lang/setup-roc@v0.3.0 with: version: nightly-new-compiler + nightly-tag: ${{ env.ROC_NIGHTLY_TAG }} - name: Install Rust shell: bash @@ -255,9 +262,10 @@ jobs: uses: actions/checkout@v7 - name: Install Roc - uses: roc-lang/setup-roc@bd311e2fb815a3d2255f7ee14a922f0b736e020b + uses: roc-lang/setup-roc@cbe782d6f165b89c87d99f50a59ac4f5f73b4427 # ratchet:roc-lang/setup-roc@v0.3.0 with: version: nightly-new-compiler + nightly-tag: ${{ env.ROC_NIGHTLY_TAG }} - name: Create docs staging tree run: mkdir -p docs-site @@ -402,9 +410,10 @@ jobs: fetch-depth: 0 - name: Install Roc - uses: roc-lang/setup-roc@bd311e2fb815a3d2255f7ee14a922f0b736e020b + uses: roc-lang/setup-roc@cbe782d6f165b89c87d99f50a59ac4f5f73b4427 # ratchet:roc-lang/setup-roc@v0.3.0 with: version: nightly-new-compiler + nightly-tag: ${{ env.ROC_NIGHTLY_TAG }} - name: Download release metadata uses: actions/download-artifact@v8 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0959099e..8bbcd948 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,6 +7,10 @@ For local work, use any recent `roc` on `PATH`, or download the latest archive for your operating system from the [`roc-lang/nightlies` releases](https://github.com/roc-lang/nightlies/releases/latest). +Release artifacts use the exact nightly named by `ROC_NIGHTLY_TAG` in +`.github/workflows/release.yml`. Advance that pin to a nightly that has passed +the moving daily CI before dispatching a release. + ## Code of Conduct We are committed to providing a friendly, safe, and welcoming environment for all. See the [Code of Conduct](https://github.com/roc-lang/roc/blob/main/CODE_OF_CONDUCT.md) for details.