Skip to content

Commit ad642fb

Browse files
committed
Include windows-latest and macos-latest builds in CI
However, don't actually test on windows as our `electrsd` doesn't build on it.
1 parent a9bb2e9 commit ad642fb

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@ name: Continuous Integration Checks
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
build:
711
strategy:
812
matrix:
13+
platform: [
14+
ubuntu-latest,
15+
macos-latest,
16+
windows-latest,
17+
]
918
toolchain: [
1019
stable,
1120
beta,
@@ -15,9 +24,14 @@ jobs:
1524
- toolchain: stable
1625
check-fmt: true
1726
build-uniffi: true
27+
platform: ubuntu-latest
28+
- toolchain: stable
29+
platform: macos-latest
30+
- toolchain: stable
31+
platform: windows-latest
1832
- toolchain: 1.63.0
1933
msrv: true
20-
runs-on: ubuntu-latest
34+
runs-on: ${{ matrix.platform }}
2135
steps:
2236
- name: Checkout source code
2337
uses: actions/checkout@v3
@@ -44,9 +58,10 @@ jobs:
4458
if: matrix.build-uniffi
4559
run: cargo check --release --features uniffi --verbose --color always
4660
- name: Test on Rust ${{ matrix.toolchain }}
61+
if: "matrix.platform != 'windows-latest'"
4762
run: cargo test
4863
- name: Test with UniFFI support on Rust ${{ matrix.toolchain }}
49-
if: matrix.build-uniffi
64+
if: "matrix.platform != 'windows-latest' && matrix.build-uniffi"
5065
run: cargo test --features uniffi
5166
- name: Check formatting on Rust ${{ matrix.toolchain }}
5267
if: matrix.check-fmt

0 commit comments

Comments
 (0)