Skip to content

Commit d746b0b

Browse files
authored
Merge pull request ariel-os#5 from ariel-os/reproduce
ci: check .cwasm files for reproducibility
2 parents 4394710 + 756144b commit d746b0b

38 files changed

Lines changed: 66 additions & 1022 deletions

File tree

.github/workflows/rebuild.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Payload building
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
rebuild-cwasm:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: dtolnay/rust-toolchain@master
18+
with:
19+
# The pinned nightly of Ariel OS v0.3
20+
toolchain: nightly-2026-01-20
21+
components: rust-src
22+
- uses: taiki-e/install-action@v1
23+
with:
24+
tool: wasm-tools
25+
- run: ./rebuild-all-payloads.sh
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
path: examples/*/*.cwasm
29+
- run: git diff --exit-code

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[workspace]
2-
members = ["examples/*", "src/ariel-os-bindings"]
2+
members = [
3+
"examples/[a-z]*",
4+
"src/ariel-os-bindings",
5+
]
36

47
exclude = ["build/", "payloads/"]
58
resolver = "3"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include = ["../build/imports/ariel-os/ariel-os-cargo.toml"]
1+
include = ["../../build/imports/ariel-os/ariel-os-cargo.toml"]
22

33
[unstable]
44
# This is needed so the "include" statement above works.
-448 Bytes
Binary file not shown.
-288 Bytes
Binary file not shown.

examples/ble-scanner/payload.cwasm

-1.06 KB
Binary file not shown.
0 Bytes
Binary file not shown.
-16 Bytes
Binary file not shown.

examples/fake-sensor/payload.cwasm

-40 Bytes
Binary file not shown.

examples/gpio/payload.cwasm

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)