Skip to content

Commit 2636c35

Browse files
Update CI to run on Macos and Windows in addition to Ubuntu.
We only run Macos and Windows on Rust stable, for efficient CI.
1 parent a98e256 commit 2636c35

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9+
platform: [ ubuntu-latest ]
910
toolchain: [ stable,
1011
beta,
1112
# 1.30.0 is MSRV for Rust-Lightning
@@ -17,12 +18,18 @@ jobs:
1718
include:
1819
- toolchain: stable
1920
build-net-tokio: true
21+
- toolchain: stable
22+
platform: macos-latest
23+
build-net-tokio: true
24+
- toolchain: stable
25+
platform: windows-latest
26+
build-net-tokio: true
2027
- toolchain: beta
2128
build-net-tokio: true
2229
- toolchain: 1.39.0
2330
build-net-tokio: true
2431
coverage: true
25-
runs-on: ubuntu-latest
32+
runs-on: ${{ matrix.platform }}
2633
steps:
2734
- name: Checkout source code
2835
uses: actions/checkout@v2
@@ -33,7 +40,8 @@ jobs:
3340
override: true
3441
profile: minimal
3542
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
36-
if: "matrix.build-net-tokio && matrix.toolchain != '1.39.0'"
43+
if: "matrix.build-net-tokio && matrix.toolchain != '1.39.0'
44+
|| matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'"
3745
run: cargo build --verbose --color always
3846
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
3947
if: "matrix.toolchain == '1.39.0'"
@@ -42,7 +50,8 @@ jobs:
4250
if: "! matrix.build-net-tokio"
4351
run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always -p lightning
4452
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio
45-
if: "matrix.build-net-tokio && matrix.toolchain != '1.39.0'"
53+
if: "matrix.build-net-tokio && matrix.toolchain != '1.39.0'
54+
|| matrix.platform == 'macos-latest' || matrix.platform == 'windows-latest'"
4655
run: cargo test --verbose --color always
4756
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
4857
if: "matrix.toolchain == '1.39.0'"

0 commit comments

Comments
 (0)