Skip to content

Commit

Permalink
Update nightly date for manifest refresh (#155)
Browse files Browse the repository at this point in the history
Makes it so only nightlies after 01-01-2024 receive new patches. This
cuts the time to refresh manifests down from ~3 hours to [43
min](https://github.com/FuelLabs/fuel.nix/actions/runs/12659594373)

---------

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
sdankel and actions-user authored Jan 7, 2025
1 parent 03cba06 commit d04de1b
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/patch-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- run: nix flake update
- run: nix run .#refresh-manifests
timeout-minutes: 240
- name: validate changed nix files
- name: Validate changed nix files
run: |
files=( $(git diff --name-only '*.nix') )
echo "${#files[*]} nix files changed: ${files[*]}"
Expand Down
8 changes: 8 additions & 0 deletions manifests/forc-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-client-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-client";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-crypto-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-crypto";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-debug-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-debug";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-doc-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-doc";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-fmt-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-fmt";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-lsp-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-lsp";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-tx-0.48.1-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-tx";
version = "0.48.1";
date = "2024-01-01";
url = "https://github.com/fuellabs/sway";
rev = "910e33bd015e2ea4571e042a856a0cd5c910b93a";
sha256 = "sha256-KmpIgbuH/Worse7RMsiR1UsSrwAZ1X4nIZG+H1fEoz4=";
}
8 changes: 8 additions & 0 deletions manifests/forc-wallet-0.4.0-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "forc-wallet";
version = "0.4.0";
date = "2024-01-01";
url = "https://github.com/fuellabs/forc-wallet";
rev = "36ecad0a149929e565542dbc0c977e26f91d593a";
sha256 = "sha256-wBauC198giQQ1uPPLbQUx8wLsmwTo2RbsTD4TZFRDVI=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-0.22.0-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core";
version = "0.22.0";
date = "2024-01-01";
url = "https://github.com/fuellabs/fuel-core";
rev = "0daa63594f670ad2c6d2028f9cc3f61bf918426c";
sha256 = "sha256-W890Wxz+ZiJZyb4b1LgmOBS7u0N+d4KE4Mmq+Glz0BY=";
}
8 changes: 8 additions & 0 deletions manifests/fuel-core-client-0.22.0-nightly-2024-01-01.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
pname = "fuel-core-client";
version = "0.22.0";
date = "2024-01-01";
url = "https://github.com/fuellabs/fuel-core";
rev = "0daa63594f670ad2c6d2028f9cc3f61bf918426c";
sha256 = "sha256-W890Wxz+ZiJZyb4b1LgmOBS7u0N+d4KE4Mmq+Glz0BY=";
}
2 changes: 1 addition & 1 deletion patches.nix
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ in [
};
}

# `forc` requires Rust 1.70 as of ~2023-07-01
# `forc` requires Rust 1.70 as of ~2023-07-01.
{
condition = m: m.date >= "2023-07-01";
patch = m: {
Expand Down
2 changes: 1 addition & 1 deletion script/refresh-manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function refresh_nightlies {
git clone "${pkg[repo]}" "$pkg_repo_dir"
fi
local pkg_git_branch="$(cd $pkg_repo_dir && git branch --show-current)"
local date_nightly="2022-09-01"
local date_nightly="2024-01-01"
local date_today=$(date -u +"%F")
echo "Collecting nightlies from $date_nightly to $date_today"
local last_git_rev=""
Expand Down

0 comments on commit d04de1b

Please sign in to comment.