From 80592f0f5138a6519a77e68cc9e4a7d61865f2cc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 29 Jun 2024 22:50:23 +0100 Subject: [PATCH] Add `-disallow-do` in CI --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94f6bef12..ca3d87b12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,8 @@ jobs: gmake -C vendor/stb/src gmake -C vendor/cgltf/src gmake -C vendor/miniaudio/src - ./odin check examples/all -vet -strict-style -target:netbsd_amd64 - ./odin check examples/all -vet -strict-style -target:netbsd_arm64 + ./odin check examples/all -vet -strict-style -disallow-do -target:netbsd_amd64 + ./odin check examples/all -vet -strict-style -disallow-do -target:netbsd_arm64 ./odin test tests/core/normal.odin -file -all-packages -define:ODIN_TEST_FANCY=false ./odin test tests/core/speed.odin -file -all-packages -o:speed -define:ODIN_TEST_FANCY=false ./odin test tests/vendor -all-packages -define:ODIN_TEST_FANCY=false @@ -62,7 +62,7 @@ jobs: gmake -C vendor/stb/src gmake -C vendor/cgltf/src gmake -C vendor/miniaudio/src - ./odin check examples/all -vet -strict-style -target:freebsd_amd64 + ./odin check examples/all -vet -strict-style -disallow-do -target:freebsd_amd64 ./odin test tests/core/normal.odin -file -all-packages -define:ODIN_TEST_FANCY=false ./odin test tests/core/speed.odin -file -all-packages -o:speed -define:ODIN_TEST_FANCY=false ./odin test tests/vendor -all-packages -define:ODIN_TEST_FANCY=false @@ -135,21 +135,21 @@ jobs: ./run.sh - name: Odin check examples/all for Linux i386 - run: ./odin check examples/all -vet -strict-style -target:linux_i386 + run: ./odin check examples/all -vet -strict-style -disallow-do -target:linux_i386 if: matrix.os == 'ubuntu-latest' - name: Odin check examples/all for Linux arm64 - run: ./odin check examples/all -vet -strict-style -target:linux_arm64 + run: ./odin check examples/all -vet -strict-style -disallow-do -target:linux_arm64 if: matrix.os == 'ubuntu-latest' - name: Odin check examples/all for FreeBSD amd64 - run: ./odin check examples/all -vet -strict-style -target:freebsd_amd64 + run: ./odin check examples/all -vet -strict-style -disallow-do -target:freebsd_amd64 if: matrix.os == 'ubuntu-latest' - name: Odin check examples/all for OpenBSD amd64 - run: ./odin check examples/all -vet -strict-style -target:openbsd_amd64 + run: ./odin check examples/all -vet -strict-style -disallow-do -target:openbsd_amd64 if: matrix.os == 'ubuntu-latest' - name: Run demo on WASI WASM32 run: | - ./odin build examples/demo -target:wasi_wasm32 -vet -strict-style -out:demo.wasm + ./odin build examples/demo -target:wasi_wasm32 -vet -strict-style -disallow-do -out:demo.wasm wasmtime ./demo.wasm if: matrix.os == 'macos-14'