Skip to content

Commit 6749d41

Browse files
sonesukeclaude
andauthored
fix: separate Windows build step for PowerShell compatibility (#40)
* fix: separate Windows build step for PowerShell compatibility Windows runners use PowerShell which doesn't support bash syntax. Separate the build step into Unix and Windows specific steps. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * chore: add setup-chrome to ensure latest Chrome version Install latest Chrome version using browser-actions/setup-chrome to ensure compatibility and prevent version-related issues. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c2b17db commit 6749d41

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
with:
2424
components: rustfmt, clippy
2525

26+
- name: Setup Chrome
27+
uses: browser-actions/setup-chrome@v1
28+
2629
- name: Check formatting
2730
run: cargo fmt -- --check
2831

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
with:
2222
components: rustfmt, clippy
2323

24+
- name: Setup Chrome
25+
uses: browser-actions/setup-chrome@v1
26+
2427
- name: Check formatting
2528
run: cargo fmt -- --check
2629

@@ -89,14 +92,19 @@ jobs:
8992
if: matrix.use_cross == true
9093
run: cargo install cross --git https://github.com/cross-rs/cross
9194

92-
- name: Build release binary
95+
- name: Build release binary (Unix)
96+
if: matrix.os != 'windows-latest'
9397
run: |
9498
if [ "${{ matrix.use_cross }}" = "true" ]; then
9599
cross build --release --target ${{ matrix.target }}
96100
else
97101
cargo build --release --target ${{ matrix.target }}
98102
fi
99103
104+
- name: Build release binary (Windows)
105+
if: matrix.os == 'windows-latest'
106+
run: cargo build --release --target ${{ matrix.target }}
107+
100108
- name: Create archive (Unix)
101109
if: matrix.os != 'windows-latest'
102110
run: |

0 commit comments

Comments
 (0)