From 36f92a3affe76234c794bdcb0483e552f984196c Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Tue, 15 Oct 2024 09:56:23 +0800 Subject: [PATCH 1/2] ci: native backend test on windows --- .github/workflows/check.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8b0bb0a2a..85706829f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -176,6 +176,19 @@ jobs: moon test --target all moon test --release --target all + - name: moon test in native backend (unix) + if: ${{ matrix.os != 'windows-latest' }} + run: | + ulimit -s 8176 + moon test --target native + moon test --target native --release + + - name: moon test in native backend (windows) + if: ${{ matrix.os == 'windows-latest' }} + run: | + # --release not support for windows + moon test --target native + - name: moon bundle run: moon bundle --all From f1838e438367f09cff4d2b6e3f8abbe464a6c65a Mon Sep 17 00:00:00 2001 From: Young-Flash Date: Tue, 15 Oct 2024 16:20:53 +0800 Subject: [PATCH 2/2] wip --- .github/workflows/check.yml | 5 +++++ moon.mod.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 85706829f..2bac6892c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -183,10 +183,15 @@ jobs: moon test --target native moon test --target native --release + - name: Setup MSVC + if: ${{ matrix.os == 'windows-latest' }} + uses: ilammy/msvc-dev-cmd@v1 + - name: moon test in native backend (windows) if: ${{ matrix.os == 'windows-latest' }} run: | # --release not support for windows + moon test --target native --dry-run moon test --target native - name: moon bundle diff --git a/moon.mod.json b/moon.mod.json index c65ef75fd..9bb49872a 100644 --- a/moon.mod.json +++ b/moon.mod.json @@ -4,5 +4,6 @@ "readme": "README.md", "repository": "https://github.com/moonbitlang/core", "license": "Apache-2.0", - "keywords": ["core","standard library"] + "keywords": ["core","standard library"], + "link-flags": ["-cc", "cl /nologo"] } \ No newline at end of file