From d0e500f124dfd61a76ad43ded35580c3dd4f1816 Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Thu, 8 Feb 2024 14:07:26 +0100 Subject: [PATCH] Fix tests on GitHub Actions --- .github/workflows/linux-aarch64.yml | 2 ++ .github/workflows/linux-armv7.yml | 2 ++ .github/workflows/linux-x86_64.yml | 2 ++ .github/workflows/macos-x86_64.yml | 2 ++ .github/workflows/windows-x86_64.yml | 2 ++ CONTRIBUTING.adoc | 2 +- 6 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-aarch64.yml b/.github/workflows/linux-aarch64.yml index f07c25da2..a04dda843 100644 --- a/.github/workflows/linux-aarch64.yml +++ b/.github/workflows/linux-aarch64.yml @@ -40,6 +40,8 @@ jobs: override: true - name: cargo test (for generating dialogs with php) uses: actions-rs/cargo@v1 + env: + RUST_MIN_STACK: 5242880 with: command: test - name: cargo build diff --git a/.github/workflows/linux-armv7.yml b/.github/workflows/linux-armv7.yml index f29c71171..01df6995c 100644 --- a/.github/workflows/linux-armv7.yml +++ b/.github/workflows/linux-armv7.yml @@ -40,6 +40,8 @@ jobs: override: true - name: cargo test (for generating dialogs with php) uses: actions-rs/cargo@v1 + env: + RUST_MIN_STACK: 5242880 with: command: test - name: cargo build diff --git a/.github/workflows/linux-x86_64.yml b/.github/workflows/linux-x86_64.yml index 62d5eafed..1ba7bc09b 100644 --- a/.github/workflows/linux-x86_64.yml +++ b/.github/workflows/linux-x86_64.yml @@ -72,6 +72,8 @@ jobs: command: build - name: cargo test uses: actions-rs/cargo@v1 + env: + RUST_MIN_STACK: 5242880 with: command: test args: -- --nocapture diff --git a/.github/workflows/macos-x86_64.yml b/.github/workflows/macos-x86_64.yml index 0b78b81d8..718afe3ba 100644 --- a/.github/workflows/macos-x86_64.yml +++ b/.github/workflows/macos-x86_64.yml @@ -72,6 +72,8 @@ jobs: # uses: mxschmitt/action-tmate@v2 - name: cargo test uses: actions-rs/cargo@v1 + env: + RUST_MIN_STACK: 5242880 with: command: test args: --features playtime,egui -- --nocapture diff --git a/.github/workflows/windows-x86_64.yml b/.github/workflows/windows-x86_64.yml index db83d561a..17d47571c 100644 --- a/.github/workflows/windows-x86_64.yml +++ b/.github/workflows/windows-x86_64.yml @@ -66,6 +66,8 @@ jobs: args: --features playtime,egui - name: cargo test uses: actions-rs/cargo@v1 + env: + RUST_MIN_STACK: 5242880 with: command: test args: --features playtime,egui -- --nocapture diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 7543c8cfb..e1e427ba0 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -76,7 +76,7 @@ Luau language bindings are generated from Rust code by executing tests: [source,shell] ---- -RUST_MIN_STACK=104857600 cargo test --package realearn-api --lib bindings::luau::export_luau +RUST_MIN_STACK=5242880 cargo test --package realearn-api --lib bindings::luau::export_luau ---- Artwork such as toolbar icons is generated by running a crate: