From 423ef28afef52987654928e55d1f1ee0aed50c84 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Sun, 10 Jul 2022 16:37:18 +0500 Subject: [PATCH] Fix workflows (#2777) * don't echo it's shown in the previous command already * use examples as cwd this should help cargo detect the .cargo/config.toml file in the directory * add [unstable] --- .github/workflows/benchmark.yml | 2 -- .github/workflows/size-cmp.yml | 8 ++++---- examples/.cargo/config.toml | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8b24e694aef..36102aa4f92 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -251,5 +251,3 @@ jobs: with: run: cat js-framework-benchmark/webdriver-ts/results/results.json | ./yew/tools/target/release/process-benchmark-results - - name: Show output JSON - run: echo ${{ steps.results.outputs.stdout }} diff --git a/.github/workflows/size-cmp.yml b/.github/workflows/size-cmp.yml index 5ea7e4f44d7..df24fd60710 100644 --- a/.github/workflows/size-cmp.yml +++ b/.github/workflows/size-cmp.yml @@ -56,14 +56,14 @@ jobs: version: 'latest' - name: Build master examples - run: find examples/*/index.html | xargs -I '{}' trunk build --release '{}' || exit 0 - working-directory: yew-master + run: find ./*/index.html | xargs -I '{}' trunk build --release '{}' || exit 0 + working-directory: yew-master/examples env: RUSTUP_TOOLCHAIN: nightly - name: Build pull request examples - run: find examples/*/index.html | xargs -I '{}' trunk build --release '{}' || exit 0 - working-directory: current-pr + run: find ./*/index.html | xargs -I '{}' trunk build --release '{}' || exit 0 + working-directory: current-pr/examples env: RUSTUP_TOOLCHAIN: nightly diff --git a/examples/.cargo/config.toml b/examples/.cargo/config.toml index 281a1476d6a..c84bb118123 100644 --- a/examples/.cargo/config.toml +++ b/examples/.cargo/config.toml @@ -1,3 +1,4 @@ +[unstable] build-std = ["std", "panic_abort"] build-std-features = ["panic_immediate_abort"] share-generics = true