try rust cache

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

View file

@ -21,30 +21,28 @@ jobs:
- run: Add-Content -Path "$env:GITHUB_ENV" -Value "GITHUB_RUNNER_CPU=$((Get-CimInstance Win32_Processor).Name)" - 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 - name: download and install zig
# with: run: |
# shared-key: "windows-rust-cache-action-$env:GITHUB_RUNNER_CPU" 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 - name: zig version
# run: | run: zig version
# 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 - name: set up llvm 13
# run: zig version 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 - name: Build tests release without running. Twice for flakyness.
# run: | run: cargo test --locked --release --no-run || cargo test --locked --release --no-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-gen-llvm
# run: cargo test --locked --release --no-run || cargo test --locked --release --no-run
#- run: cargo test-gen-llvm - run: cargo test-gen-wasm
#- run: cargo test-gen-wasm