Skip to content

Commit fc93226

Browse files
committed
ci: Check generated extensions
1 parent f542cfc commit fc93226

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,29 @@ jobs:
8686
8787
- name: cargo clippy
8888
run: nix develop .#noObelisk --command cargo clippy --workspace --all-targets -- -D warnings
89+
90+
check-generated-extensions:
91+
runs-on: ubuntu-24.04
92+
steps:
93+
- uses: actions/checkout@v4
94+
95+
- uses: nixbuild/nix-quick-install-action@v30
96+
with:
97+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
98+
nix_conf: |
99+
extra-substituters = https://cache.garnix.io
100+
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g
101+
- name: Populate the nix store
102+
run: |
103+
nix develop --command echo
104+
105+
- run: nix develop --command ./scripts/obelisk-generate-extensions.sh
106+
107+
- run: |
108+
if git diff --quiet; then
109+
echo "No changes"
110+
else
111+
echo "Changes in generated extensions detected:"
112+
echo "$(git diff)"
113+
exit 1
114+
fi
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
set -exuo pipefail
44
cd "$(dirname "$0")/.."
55

6-
(
7-
cd fly-http/wit
8-
obelisk generate extensions activity_wasm .
9-
)
6+
obelisk generate extensions activity_wasm fly-http/wit/
7+

0 commit comments

Comments
 (0)