diff --git a/artifact-post-action/compute-risk-and-residual/Makefile b/artifact-post-action/compute-risk-and-residual/Makefile index b5a39c2..77a752f 100644 --- a/artifact-post-action/compute-risk-and-residual/Makefile +++ b/artifact-post-action/compute-risk-and-residual/Makefile @@ -10,4 +10,4 @@ tests: .PHONY: build build: - cargo build --target wasm32-wasi --release + cargo build --target wasm32-wasip1 --release diff --git a/artifact-post-action/compute-risk-and-residual/README.md b/artifact-post-action/compute-risk-and-residual/README.md index 7a8d906..14b00d4 100644 --- a/artifact-post-action/compute-risk-and-residual/README.md +++ b/artifact-post-action/compute-risk-and-residual/README.md @@ -33,5 +33,5 @@ API `PUT /api/artifacts/:id`. For example: Then build the function: ```shell -cargo build --target wasm32-wasi --release +cargo build --target wasm32-wasip1 --release ``` diff --git a/artifact-post-action/compute-risk-and-residual/shell.nix b/artifact-post-action/compute-risk-and-residual/shell.nix index b0724d0..bf71966 100644 --- a/artifact-post-action/compute-risk-and-residual/shell.nix +++ b/artifact-post-action/compute-risk-and-residual/shell.nix @@ -3,7 +3,7 @@ pkgs.mkShellNoCC { buildInputs = [ (pkgs.rust-bin.stable.latest.default.override { - targets = [ "wasm32-wasi" ]; + targets = [ "wasm32-wasip1" ]; extensions = [ "cargo" "rustc" "rust-src" ]; }) pkgs.gnumake diff --git a/artifact-post-action/compute-risk/Makefile b/artifact-post-action/compute-risk/Makefile index b5a39c2..77a752f 100644 --- a/artifact-post-action/compute-risk/Makefile +++ b/artifact-post-action/compute-risk/Makefile @@ -10,4 +10,4 @@ tests: .PHONY: build build: - cargo build --target wasm32-wasi --release + cargo build --target wasm32-wasip1 --release diff --git a/artifact-post-action/compute-risk/README.md b/artifact-post-action/compute-risk/README.md index 460e51e..feab820 100644 --- a/artifact-post-action/compute-risk/README.md +++ b/artifact-post-action/compute-risk/README.md @@ -44,10 +44,10 @@ use the module as is, in any Tracker with following constraints: Then build the function: ```shell -cargo build --target wasm32-wasi --release +cargo build --target wasm32-wasip1 --release ``` -Then upload the binary result file (`target/wasm32-wasi/release/post-action-compute-risk.wasm`) to your Tracker +Then upload the binary result file (`target/wasm32-wasip1/release/post-action-compute-risk.wasm`) to your Tracker administration (Administration > Workflow > Tuleap Functions). And finally, update an artifact, shortly after the creation, it will be automatically updated with computed risk. \ No newline at end of file diff --git a/artifact-post-action/compute-risk/shell.nix b/artifact-post-action/compute-risk/shell.nix index 30005f9..0505944 100644 --- a/artifact-post-action/compute-risk/shell.nix +++ b/artifact-post-action/compute-risk/shell.nix @@ -3,7 +3,7 @@ pkgs.mkShellNoCC { buildInputs = [ (pkgs.rust-bin.stable.latest.default.override { - targets = [ "wasm32-wasi" ]; + targets = [ "wasm32-wasip1" ]; extensions = [ "cargo" "rustc" "rust-src" ]; }) pkgs.gnumake diff --git a/artifact-post-action/post-action-add-comment/Makefile b/artifact-post-action/post-action-add-comment/Makefile index e46900e..4290d5a 100644 --- a/artifact-post-action/post-action-add-comment/Makefile +++ b/artifact-post-action/post-action-add-comment/Makefile @@ -10,4 +10,4 @@ tests: .PHONY: build build: - cargo build --target wasm32-wasi --release + cargo build --target wasm32-wasip1 --release diff --git a/artifact-post-action/post-action-add-comment/README.md b/artifact-post-action/post-action-add-comment/README.md index 7a8b6ff..bea67ad 100644 --- a/artifact-post-action/post-action-add-comment/README.md +++ b/artifact-post-action/post-action-add-comment/README.md @@ -348,12 +348,12 @@ API `PUT /api/artifacts/:id`. For example: If you want to use it for your Tracker, you first need to build it: ```shell -cargo build --target wasm32-wasi --release +cargo build --target wasm32-wasip1 --release ``` ### On Tuleap side -Then upload the binary result file (`target/wasm32-wasi/release/post-action-add-comment.wasm`) to your Tracker +Then upload the binary result file (`target/wasm32-wasip1/release/post-action-add-comment.wasm`) to your Tracker administration (Administration > Workflow > Tuleap Functions). In order to make functionnal the Function in your Tracker, you **must** have the following fields: diff --git a/artifact-post-action/post-action-add-comment/shell.nix b/artifact-post-action/post-action-add-comment/shell.nix index 30005f9..0505944 100644 --- a/artifact-post-action/post-action-add-comment/shell.nix +++ b/artifact-post-action/post-action-add-comment/shell.nix @@ -3,7 +3,7 @@ pkgs.mkShellNoCC { buildInputs = [ (pkgs.rust-bin.stable.latest.default.override { - targets = [ "wasm32-wasi" ]; + targets = [ "wasm32-wasip1" ]; extensions = [ "cargo" "rustc" "rust-src" ]; }) pkgs.gnumake diff --git a/artifact-post-action/tools/nixpkgs-pin.json b/artifact-post-action/tools/nixpkgs-pin.json index 19d169d..bcd655b 100644 --- a/artifact-post-action/tools/nixpkgs-pin.json +++ b/artifact-post-action/tools/nixpkgs-pin.json @@ -1,10 +1,10 @@ { "url": "https://github.com/NixOS/nixpkgs.git", - "rev": "5083ec887760adfe12af64830a66807423a859a7", - "date": "2024-11-18T11:41:09+11:00", - "path": "/nix/store/r2mkdrqip3xx66fv3jdz1w9h020b315z-nixpkgs", - "sha256": "0sr45csfh2ff8w7jpnkkgl22aa89sza4jlhs6wq0368dpmklsl8g", - "hash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=", + "rev": "29335f23bea5e34228349ea739f31ee79e267b88", + "date": "2025-04-28T10:45:31+09:00", + "path": "/nix/store/a7ik40p47wz5dkl9bfkkng6mh2ibykji-nixpkgs", + "sha256": "1j7bn6dicx3xy7pq6dfvz850f8bnvn3iqv7f9szsnh5l0kf0myxz", + "hash": "sha256-v/sK3AS0QKu/Tu5sHIfddiEHCvrbNYPv8X10Fpux68g=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/artifact-post-action/tools/oxalica-rust-overlay-pin.json b/artifact-post-action/tools/oxalica-rust-overlay-pin.json index 400e70e..72307fd 100644 --- a/artifact-post-action/tools/oxalica-rust-overlay-pin.json +++ b/artifact-post-action/tools/oxalica-rust-overlay-pin.json @@ -1,10 +1,10 @@ { "url": "https://github.com/oxalica/rust-overlay.git", - "rev": "71287228d96e9568e1e70c6bbfa3f992d145947b", - "date": "2024-11-19T02:32:07Z", - "path": "/nix/store/fhf0hgxpxnr26v2b6b8vb07a3ra2z4zx-rust-overlay", - "sha256": "1sg1myrnrfyv7jn5srinrfinvbz8qzly5mmd3rshz9dl0039lh14", - "hash": "sha256-JECaBgC0pQ91Hq3W4unH6K9to8s2Zl2sPNu7bLOv4ek=", + "rev": "e552fe1b16ffafd678ebe061c22b117e050769ed", + "date": "2025-04-29T02:35:13Z", + "path": "/nix/store/lx5nn3mqx41fd13c87qbsn42gwi14lvf-rust-overlay", + "sha256": "11v5sw1q2aajgz95c75s9352sw2apvc5sbnp6blzychrliqvf4vp", + "hash": "sha256-dxO3caQZMv/pMtcuXdi+SnAtyki6HFbSf1IpgQPXZYc=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false,