try out CPU env var

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2022-10-31 11:53:25 +01:00 committed by GitHub
parent 499177736c
commit e86e2113ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,24 +19,32 @@ jobs:
steps:
- uses: actions/checkout@v2
- 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\"
- run: Add-Content -Path "$env:GITHUB_ENV" -Value "GITHUB_RUNNER_CPU=$((Get-CimInstance Win32_Processor).Name)"
- name: zig version
run: zig version
- run: echo $Env:GITHUB_RUNNER_CPU
- 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
#- uses: Swatinem/rust-cache@v2
# with:
# shared-key: "windows-rust-cache-action-$env:GITHUB_RUNNER_CPU"
- name: Build tests release without running. Twice for flakyness.
run: cargo test --locked --release --no-run || cargo test --locked --release --no-run
#- 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\"
- run: cargo test-gen-llvm
#- name: zig version
# run: zig version
- run: cargo test-gen-wasm
#- 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
#- run: cargo test-gen-llvm
#- run: cargo test-gen-wasm