Skip to content

Commit

Permalink
add convinient build-local target for wasm integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Apr 25, 2024
1 parent 08c83c7 commit dbd85d1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wasm/integration-test/clocks/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="clocks.wasm"

SAVE ARTIFACT clocks.wasm

build-local:
FROM +build
SAVE ARTIFACT clocks.wasm AS LOCAL clocks.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/cron/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="cron.wasm"

SAVE ARTIFACT cron.wasm

build-local:
FROM +build
SAVE ARTIFACT cron.wasm AS LOCAL cron.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/crypto/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="crypto.wasm"

SAVE ARTIFACT crypto.wasm

build-local:
FROM +build
SAVE ARTIFACT crypto.wasm AS LOCAL crypto.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/hashing/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="hashing.wasm"

SAVE ARTIFACT hashing.wasm

build-local:
FROM +build
SAVE ARTIFACT hashing.wasm AS LOCAL hashing.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/localtime/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="localtime.wasm"

SAVE ARTIFACT localtime.wasm

build-local:
FROM +build
SAVE ARTIFACT localtime.wasm AS LOCAL localtime.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/logger/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="logger.wasm"

SAVE ARTIFACT logger.wasm

build-local:
FROM +build
SAVE ARTIFACT logger.wasm AS LOCAL logger.wasm
4 changes: 4 additions & 0 deletions wasm/integration-test/smoke-test/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ build:
RUN /scripts/std_build.py --wit_path="wit" --c_files=$c_files --out="smoke-test.wasm"

SAVE ARTIFACT smoke-test.wasm

build-local:
FROM +build
SAVE ARTIFACT smoke-test.wasm AS LOCAL smoke-test.wasm

0 comments on commit dbd85d1

Please sign in to comment.