Skip to content

Commit 25e6166

Browse files
committed
cargo-rail: expanding CI/CD coverage; fixing platform specific issues
1 parent 1e96524 commit 25e6166

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/commit.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,31 @@ jobs:
3737
runner: ubuntu-latest
3838
cache-key: commit-linux-x64
3939

40-
# Linux ARM64 (GitHub Pro)
40+
# Linux ARM64 (GitHub Teams/Enterprise)
4141
- name: aarch64-unknown-linux-gnu
4242
runner: ubuntu-24.04-arm
4343
cache-key: commit-linux-arm64
4444

45+
# macOS ARM64 - Sonoma (GitHub Free)
46+
- name: aarch64-apple-darwin
47+
runner: macos-14
48+
cache-key: commit-macos-arm64
49+
50+
# macOS ARM64 - Sequoia (GitHub Free)
51+
- name: aarch64-apple-darwin
52+
runner: macos-15
53+
cache-key: commit-macos-latest
54+
4555
# Windows x86-64 (GitHub Free)
4656
- name: x86_64-pc-windows-msvc
4757
runner: windows-latest
4858
cache-key: commit-windows-x64
4959

60+
# Windows ARM64 (GitHub Teams/Enterprise)
61+
- name: aarch64-pc-windows-msvc
62+
runner: windows-11-arm64
63+
cache-key: commit-windows-arm64
64+
5065
steps:
5166
- name: Checkout
5267
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

crates/cargo-rail/src/checks/ssh.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use super::trait_def::{Check, CheckContext, CheckResult};
44
use crate::core::error::RailResult;
5+
#[cfg(unix)]
56
use std::fs;
67
#[cfg(unix)]
78
use std::os::unix::fs::PermissionsExt;
@@ -51,7 +52,7 @@ impl Check for SshKeyCheck {
5152
];
5253

5354
let mut found_keys = Vec::new();
54-
let mut permission_issues = Vec::new();
55+
let mut permission_issues: Vec<String> = Vec::new();
5556

5657
for (key_name, key_desc) in key_types {
5758
let key_path = ssh_dir.join(key_name);

0 commit comments

Comments
 (0)