Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion artifact-post-action/compute-risk-and-residual/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tests:

.PHONY: build
build:
cargo build --target wasm32-wasi --release
cargo build --target wasm32-wasip1 --release
2 changes: 1 addition & 1 deletion artifact-post-action/compute-risk-and-residual/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion artifact-post-action/compute-risk-and-residual/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion artifact-post-action/compute-risk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tests:

.PHONY: build
build:
cargo build --target wasm32-wasi --release
cargo build --target wasm32-wasip1 --release
4 changes: 2 additions & 2 deletions artifact-post-action/compute-risk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion artifact-post-action/compute-risk/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion artifact-post-action/post-action-add-comment/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tests:

.PHONY: build
build:
cargo build --target wasm32-wasi --release
cargo build --target wasm32-wasip1 --release
4 changes: 2 additions & 2 deletions artifact-post-action/post-action-add-comment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion artifact-post-action/post-action-add-comment/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions artifact-post-action/tools/nixpkgs-pin.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
10 changes: 5 additions & 5 deletions artifact-post-action/tools/oxalica-rust-overlay-pin.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down