Skip to content

Commit 1761236

Browse files
authored
Merge pull request #62 from rust-lang/ci/windows
Add Windows CI
2 parents 8bebade + 6f47cf9 commit 1761236

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# TODO: test more stuff on Windows.
2+
13
name: CI
24

35
on:
@@ -13,7 +15,14 @@ env:
1315

1416
jobs:
1517
build:
16-
runs-on: ubuntu-24.04
18+
runs-on: ${{ matrix.os }}
19+
20+
strategy:
21+
matrix:
22+
os:
23+
- ubuntu-24.04
24+
- windows-2025
25+
1726
steps:
1827
- uses: actions/checkout@v3
1928
- uses: actions-rs/toolchain@v1
@@ -24,6 +33,7 @@ jobs:
2433
components: clippy
2534

2635
- name: Download and install GCC fork
36+
if: ${{ matrix.os == 'ubuntu-24.04' }}
2737
run: |
2838
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-15.deb
2939
sudo dpkg --force-overwrite -i gcc-15.deb
@@ -51,17 +61,24 @@ jobs:
5161
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}
5262

5363
- name: Build
64+
if: ${{ matrix.os == 'ubuntu-24.04' }}
5465
run: |
5566
cargo build
5667
cargo build --features master,dlopen
5768
cargo build --examples
5869
70+
- name: Build
71+
if: ${{ matrix.os == 'windows-2025' }}
72+
run: cargo build --features master,dlopen
73+
5974
- name: Test
75+
if: ${{ matrix.os == 'ubuntu-24.04' }}
6076
run: |
6177
cd examples/factorial
6278
cargo build
6379
6480
- name: clippy
81+
if: ${{ matrix.os == 'ubuntu-24.04' }}
6582
run: |
6683
cargo clippy --all-targets -- -D warnings
6784
cargo clippy --all-targets --features master,dlopen -- -D warnings

0 commit comments

Comments
 (0)