Skip to content

Fix build on Windows. #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 18, 2022
Prev Previous commit
Next Next commit
review: debug test data?
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora committed Feb 17, 2022
commit a2fb9a5dce7d5e1da322b30c2a119e84656f6555
13 changes: 8 additions & 5 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ jobs:

- name: Mangle build rules to use existing test data
shell: bash
run: >
sed 's/\.wasm//g' test/BUILD > test/BUILD.tmp && mv test/BUILD.tmp test/BUILD;
echo "package(default_visibility = [\"//visibility:public\"])" > test/test_data/BUILD;
for i in $(cd test/test_data && ls -1 *.wasm | sed 's/\.wasm$//g');
do echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD;
run: |
sed 's/\.wasm//g' test/BUILD > test/BUILD.tmp && mv test/BUILD.tmp test/BUILD
echo "package(default_visibility = [\"//visibility:public\"])" > test/test_data/BUILD
for i in $(cd test/test_data && ls -1 *.wasm | sed 's/\.wasm$//g'); do \
echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD; \
done
echo "===== AFTER ====="
git status test/
git diff test/

- name: Bazel build/test
run: >
Expand Down