Skip to content

Commit

Permalink
fix: patch rust v1.81 as of >2024-12-30 (#153)
Browse files Browse the repository at this point in the history
Patches the version of rust, increases the timeout for the
refresh-manifests actions, and moves them to run in build-jet. As a
follow up, we should adjust the script to only refresh more recent
nightly builds to reduce the time it takes.

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
sdankel and actions-user authored Jan 7, 2025
1 parent 0e91606 commit 03cba06
Show file tree
Hide file tree
Showing 18 changed files with 135 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/patch-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

jobs:
refresh-and-commit:
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2204
if: github.ref != 'refs/heads/master'
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
Expand All @@ -31,7 +31,7 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake update
- run: nix run .#refresh-manifests
timeout-minutes: 120
timeout-minutes: 240
- name: validate changed nix files
run: |
files=( $(git diff --name-only '*.nix') )
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/refresh-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
refresh-and-upload-manifests:
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
Expand All @@ -18,7 +18,7 @@ jobs:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix run .#refresh-manifests
timeout-minutes: 120
timeout-minutes: 240
- name: validate changed nix files
run: |
files=( $(git diff --name-only '*.nix') )
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions manifests/forc-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-client-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-client";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-crypto-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-crypto";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-debug-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-debug";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-doc-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-doc";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-fmt-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-fmt";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-lsp-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-lsp";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-tx-0.66.5-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-tx";
version = "0.66.5";
date = "2025-01-07";
url = "https://github.com/fuellabs/sway";
rev = "8fe2bd6ed267d94e172350d0835de5a11d796cea";
sha256 = "sha256-AoUm642EeZxVdn5XUUlfCwQjQLuftPzPLpUmVzFhuH4=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-0.40.2-nightly-2025-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core";
version = "0.40.2";
date = "2025-01-01";
url = "https://github.com/fuellabs/fuel-core";
rev = "df0283c2fc32cdf053ce20dfd021e5206c9c5e86";
sha256 = "sha256-yTQTj709y6lK6HN0pMDGWot5CcSQLDBilHlB7J0krJs=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-0.40.2-nightly-2025-01-03.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core";
version = "0.40.2";
date = "2025-01-03";
url = "https://github.com/fuellabs/fuel-core";
rev = "d84306f9a83a4a2358ef18a5033dfb0812170a87";
sha256 = "sha256-xoYEyVP0pK2qBofca9gCzODfOtwZrchrzu5k1QXXBsA=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-0.40.2-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core";
version = "0.40.2";
date = "2025-01-07";
url = "https://github.com/fuellabs/fuel-core";
rev = "4f77f349ed7eba886e04ffe49c385ef635ec69b1";
sha256 = "sha256-tuLI2jsCyolvWB4BFCYDX6CsxBDCJR0iThZ5TUIlhtY=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-client-0.40.2-nightly-2025-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core-client";
version = "0.40.2";
date = "2025-01-01";
url = "https://github.com/fuellabs/fuel-core";
rev = "df0283c2fc32cdf053ce20dfd021e5206c9c5e86";
sha256 = "sha256-yTQTj709y6lK6HN0pMDGWot5CcSQLDBilHlB7J0krJs=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-client-0.40.2-nightly-2025-01-03.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core-client";
version = "0.40.2";
date = "2025-01-03";
url = "https://github.com/fuellabs/fuel-core";
rev = "d84306f9a83a4a2358ef18a5033dfb0812170a87";
sha256 = "sha256-xoYEyVP0pK2qBofca9gCzODfOtwZrchrzu5k1QXXBsA=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-client-0.40.2-nightly-2025-01-07.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core-client";
version = "0.40.2";
date = "2025-01-07";
url = "https://github.com/fuellabs/fuel-core";
rev = "4f77f349ed7eba886e04ffe49c385ef635ec69b1";
sha256 = "sha256-tuLI2jsCyolvWB4BFCYDX6CsxBDCJR0iThZ5TUIlhtY=";
}
10 changes: 10 additions & 0 deletions patches.nix
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,14 @@ in [
};
};
}

# `fuel-core` requires Rust 1.81 as of v0.40.2.
{
condition = m: m.date >= "2024-12-30";
patch = m: {
rust = pkgs.rust-bin.stable."1.81.0".default.override {
targets = ["wasm32-unknown-unknown"];
};
};
}
]

0 comments on commit 03cba06

Please sign in to comment.