Skip to content

Commit

Permalink
chore: Ensure in the CI pipeline that all the examples can be built
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse authored and Gashmob committed Feb 13, 2024
1 parent 54e03e8 commit 51149c7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
matrix:
tuleap_functions:
- "artifact-post-action/auto-assign"
- "artifact-post-action/compute-risk"
- "artifact-post-action/post-action-add-comment"
runs-on: ubuntu-22.04
name: Tests (${{ matrix.tuleap_functions }})
defaults:
Expand Down
13 changes: 13 additions & 0 deletions artifact-post-action/compute-risk/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SHELL=/usr/bin/env bash -euo pipefail -c

.PHONY: prepare
prepare:
true

.PHONY: tests
tests:
true

.PHONY: build
build:
cargo build --target wasm32-wasi --release
3 changes: 2 additions & 1 deletion artifact-post-action/compute-risk/shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ pkgs ? (import ../tools/pinned-nixpkgs.nix) {} }:

pkgs.mkShell {
pkgs.mkShellNoCC {
buildInputs = [
(pkgs.rust-bin.stable.latest.default.override {
targets = [ "wasm32-wasi" ];
extensions = [ "cargo" "rustc" "rust-src" ];
})
pkgs.gnumake
];
}
13 changes: 13 additions & 0 deletions artifact-post-action/post-action-add-comment/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SHELL=/usr/bin/env bash -euo pipefail -c

.PHONY: prepare
prepare:
true

.PHONY: tests
tests:
cargo test

.PHONY: build
build:
cargo build --target wasm32-wasi --release
3 changes: 2 additions & 1 deletion artifact-post-action/post-action-add-comment/shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ pkgs ? (import ../tools/pinned-nixpkgs.nix) {} }:

pkgs.mkShell {
pkgs.mkShellNoCC {
buildInputs = [
(pkgs.rust-bin.stable.latest.default.override {
targets = [ "wasm32-wasi" ];
extensions = [ "cargo" "rustc" "rust-src" ];
})
pkgs.gnumake
];
}

0 comments on commit 51149c7

Please sign in to comment.