Skip to content

Commit de406cf

Browse files
committed
feat: add cross-platform build
1 parent 74b055f commit de406cf

1 file changed

Lines changed: 26 additions & 49 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 26 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -49,55 +49,32 @@ jobs:
4949
- name: Run cargo test
5050
run: cargo test --all-features
5151

52-
# build-target:
53-
# name: Build on ${{ matrix.os }} for ${{ matrix.target }} target
54-
# needs: [lint]
55-
# runs-on: ${{ matrix.os }}
56-
# strategy:
57-
# fail-fast: true
58-
# matrix:
59-
# include:
60-
# - os: macos-latest
61-
# target: x86_64-apple-darwin
62-
# - os: macos-latest
63-
# target: aarch64-apple-darwin
64-
# - os: macos-latest
65-
# target: x86_64-apple-ios
66-
# - os: macos-latest
67-
# target: aarch64-apple-ios
68-
# - os: windows-latest
69-
# target: x86_64-pc-windows-gnu
70-
# - os: windows-latest
71-
# target: x86_64-pc-windows-msvc
72-
# - os: windows-latest
73-
# target: i686-pc-windows-gnu
74-
# - os: windows-latest
75-
# target: i686-pc-windows-msvc
76-
# - os: ubuntu-latest
77-
# target: aarch64-unknown-linux-gnu
78-
# - os: ubuntu-latest
79-
# target: i686-unknown-linux-gnu
80-
# - os: ubuntu-latest
81-
# target: x86_64-unknown-linux-gnu
82-
# - os: ubuntu-latest
83-
# target: aarch64-linux-android
84-
# - os: ubuntu-latest
85-
# target: armv7-linux-androideabi
86-
# steps:
87-
# - name: Checkout repository
88-
# uses: actions/checkout@v6
89-
90-
# - name: Install Rust
91-
# uses: actions-rust-lang/setup-rust-toolchain@v1
92-
# with:
93-
# target: ${{ matrix.target }}
94-
# rustflags: ""
95-
96-
# - name: Run cargo build
97-
# run: cargo build --all-features --target ${{ matrix.target }}
98-
99-
# - name: Run cargo test
100-
# run: cargo test --all-features --target ${{ matrix.target }}
52+
build-target:
53+
name: Build on ${{ matrix.name }}
54+
needs: [lint]
55+
runs-on: ${{ matrix.os }}
56+
strategy:
57+
fail-fast: true
58+
matrix:
59+
include:
60+
- os: windows-latest
61+
name: Windows
62+
- os: macos-latest
63+
name: MacOS
64+
steps:
65+
- name: Checkout repository
66+
uses: actions/checkout@v6
67+
68+
- name: Install Rust
69+
uses: actions-rust-lang/setup-rust-toolchain@v1
70+
with:
71+
rustflags: ""
72+
73+
- name: Run cargo build
74+
run: cargo build --all-features
75+
76+
- name: Run cargo test
77+
run: cargo test --all-features
10178

10279
coverage:
10380
name: Code coverage

0 commit comments

Comments
 (0)