Skip to content

Commit 74c221b

Browse files
committed
Update submodule and include tests for Windows Aarch64
1 parent 5143be1 commit 74c221b

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.github/workflows/cross.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414
with:
15-
submodules: 'true'
15+
submodules: true
1616
checks:
1717
name: ${{ matrix.name }} (${{ matrix.target }})
1818
runs-on: ${{ matrix.os }}
@@ -21,15 +21,6 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
target:
25-
- x86_64-unknown-linux-gnu
26-
- x86_64-apple-darwin
27-
- x86_64-pc-windows-msvc
28-
- x86_64-unknown-freebsd
29-
- aarch64-linux-android
30-
- aarch64-unknown-linux-gnu
31-
- armv7-unknown-linux-gnueabihf
32-
3324
include:
3425
- os: ubuntu-latest
3526
name: Linux
@@ -49,6 +40,12 @@ jobs:
4940
cross: false
5041
test: true
5142

43+
- os: windows-latest
44+
name: Windows
45+
target: aarch64-pc-windows-msvc
46+
cross: true
47+
test: true
48+
5249
- os: ubuntu-latest
5350
name: FreeBSD
5451
target: x86_64-unknown-freebsd
@@ -78,15 +75,19 @@ jobs:
7875
- name: Checkout
7976
uses: actions/checkout@v4
8077
with:
81-
submodules: 'true'
78+
submodules: true
8279

8380
- name: Bootstrap
8481
uses: dtolnay/rust-toolchain@stable
8582
with:
8683
targets: ${{ matrix.target }}
8784

8885
- name: Install cross
89-
run: cargo install cross
86+
# run: cargo install cross
87+
# crates.io contains a 2-year-old version (v0.2.5) that seems to lack
88+
# proper support for aarch64-pc-windows-msvc. Use the GitHub version
89+
# until v0.3.0 (impending) is released.
90+
run: cargo install --git https://github.com/cross-rs/cross
9091
if: ${{ matrix.cross }}
9192

9293
- name: Build
@@ -101,4 +102,4 @@ jobs:
101102
- uses: actions/upload-artifact@v4
102103
with:
103104
name: info-${{ matrix.target }}
104-
path: info.txt
105+
path: info.txt

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/target
22
/Cargo.lock
3-
info.txt
3+
/info.txt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cpuinfo-rs title
1+
# cpuinfo-rs
22

33
[![Actions Status](https://github.com/Traverse-Research/cpuinfo-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/Traverse-Research/cpuinfo-rs/actions)
44
[![Latest version](https://img.shields.io/crates/v/cpuinfo-rs.svg?logo=rust)](https://crates.io/crates/cpuinfo-rs)

info.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)