Skip to content

Commit

Permalink
Get CPU info of Windows machine
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Dec 6, 2022
1 parent 13e21c1 commit bd0a56e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Expand Up @@ -3,6 +3,17 @@ version: 2.1
orbs:
win: circleci/windows@5.0

commands:
show_cpu_info:
steps:
- run:
name: Show CPU info
command: |
set -o errexit
curl -sS -L --output py-cpuinfo.zip https://github.com/workhorsy/py-cpuinfo/archive/refs/tags/v9.0.0.zip
unzip -q py-cpuinfo.zip
python py-cpuinfo-*/cpuinfo/cpuinfo.py
jobs:
# All checks on the codebase that can run in parallel to build_shared_library
libwasmvm_sanity:
Expand Down Expand Up @@ -78,6 +89,7 @@ jobs:
- run:
name: Reset git config set by CircleCI to make Cargo work
command: git config --global --unset url.ssh://git@github.com.insteadof
- show_cpu_info
- run:
name: Install Rust
command: |
Expand Down Expand Up @@ -237,6 +249,7 @@ jobs:
- run:
name: Reset git config set by CircleCI to make Cargo work
command: git config --global --unset url.ssh://git@github.com.insteadof
- show_cpu_info
- run:
name: Install make
command: |
Expand Down Expand Up @@ -302,6 +315,7 @@ jobs:
GORACE: "halt_on_error=1"
steps:
- checkout
- show_cpu_info
- run:
name: Install make and mingw
# See https://github.com/docker/containerd-packaging/pull/294 for discussion around mingw version
Expand Down

0 comments on commit bd0a56e

Please sign in to comment.