cgen: fix inline if expression returning closure (fixes #26595) #6577
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: wasm backend CI | |
| on: | |
| push: | |
| paths: | |
| - 'cmd/tools/builders/**.v' | |
| - 'vlib/builtin/**.v' | |
| - 'vlib/v/ast/**.v' | |
| - 'vlib/v/scanner/**.v' | |
| - 'vlib/v/parser/**.v' | |
| - 'vlib/v/checker/**.v' | |
| - 'vlib/v/gen/c/**.v' | |
| - 'vlib/v/builder/**.v' | |
| - 'vlib/v/cflag/**.v' | |
| - 'vlib/v/live/**.v' | |
| - 'vlib/v/util/**.v' | |
| - 'vlib/v/markused/**.v' | |
| - 'vlib/v/preludes/**.v' | |
| - 'vlib/v/gen/wasm/**.v' | |
| - 'vlib/v/gen/wasm/tests/**.v' | |
| - 'vlib/v/gen/wasm/tests/**.vv' | |
| - 'vlib/v/gen/wasm/tests_decompile/**.v' | |
| - 'vlib/v/gen/wasm/tests_decompile/**.vv' | |
| - '**/wasm_backend_ci.yml' | |
| pull_request: | |
| paths: | |
| - 'cmd/tools/builders/**.v' | |
| - 'vlib/builtin/**.v' | |
| - 'vlib/v/ast/**.v' | |
| - 'vlib/v/scanner/**.v' | |
| - 'vlib/v/parser/**.v' | |
| - 'vlib/v/checker/**.v' | |
| - 'vlib/v/gen/c/**.v' | |
| - 'vlib/v/builder/**.v' | |
| - 'vlib/v/cflag/**.v' | |
| - 'vlib/v/live/**.v' | |
| - 'vlib/v/util/**.v' | |
| - 'vlib/v/markused/**.v' | |
| - 'vlib/v/preludes/**.v' | |
| - 'vlib/v/gen/wasm/**.v' | |
| - 'vlib/v/gen/wasm/tests/**.v' | |
| - 'vlib/v/gen/wasm/tests/**.vv' | |
| - 'vlib/v/gen/wasm/tests_decompile/**.v' | |
| - 'vlib/v/gen/wasm/tests_decompile/**.vv' | |
| - '**/wasm_backend_ci.yml' | |
| concurrency: | |
| group: wasm-${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| wasm-backend: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-2022] | |
| fail-fast: false | |
| timeout-minutes: 20 | |
| env: | |
| VTEST_ONLY: wasm | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build V | |
| if: runner.os != 'Windows' | |
| run: make -j4 | |
| - name: Build V (Windows) | |
| if: runner.os == 'Windows' | |
| run: ./make.bat | |
| - name: Install WABT to get wasm-decompile | |
| if: runner.os != 'Windows' | |
| run: ./v retry -- sudo apt install wabt | |
| - name: Setup Wasmer | |
| uses: wasmerio/setup-wasmer@v3.1 | |
| - name: Prebuild the WASM backend | |
| run: ./v cmd/tools/builders/wasm_builder.v | |
| - name: Test the WASM backend | |
| run: ./v test vlib/v/gen/wasm/ | |
| - name: Build examples | |
| run: ./v build-examples |