diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 92d9bbe67d..0dc4a8fdc7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -21,30 +21,28 @@ jobs: - run: Add-Content -Path "$env:GITHUB_ENV" -Value "GITHUB_RUNNER_CPU=$((Get-CimInstance Win32_Processor).Name)" - - run: echo $Env:GITHUB_RUNNER_CPU + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "windows-rust-cache-action-$env:GITHUB_RUNNER_CPU" - #- uses: Swatinem/rust-cache@v2 - # with: - # shared-key: "windows-rust-cache-action-$env:GITHUB_RUNNER_CPU" + - name: download and install zig + run: | + curl.exe --output "C:\zig-windows-x86_64-0.9.1.zip" --url https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip + cd C:\ + 7z x zig-windows-x86_64-0.9.1.zip + Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.9.1\" - #- name: download and install zig - # run: | - # curl.exe --output "C:\zig-windows-x86_64-0.9.1.zip" --url https://ziglang.org/download/0.9.1/zig-windows-x86_64-0.9.1.zip - # cd C:\ - # 7z x zig-windows-x86_64-0.9.1.zip - # Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.9.1\" + - name: zig version + run: zig version - #- name: zig version - # run: zig version + - name: set up llvm 13 + run: | + curl.exe -L -O https://github.com/roc-lang/llvm-package-windows/releases/download/v13.0.1/LLVM-13.0.1-win64.7z + 7z x LLVM-13.0.1-win64.7z -oC:\LLVM-13.0.1-win64 - #- name: set up llvm 13 - # run: | - # curl.exe -L -O https://github.com/roc-lang/llvm-package-windows/releases/download/v13.0.1/LLVM-13.0.1-win64.7z - # 7z x LLVM-13.0.1-win64.7z -oC:\LLVM-13.0.1-win64 + - name: Build tests release without running. Twice for flakyness. + run: cargo test --locked --release --no-run || cargo test --locked --release --no-run - #- name: Build tests release without running. Twice for flakyness. - # run: cargo test --locked --release --no-run || cargo test --locked --release --no-run + - run: cargo test-gen-llvm - #- run: cargo test-gen-llvm - - #- run: cargo test-gen-wasm + - run: cargo test-gen-wasm