Skip to content

Commit ccac7ee

Browse files
authored
Separate build and tests (#11)
1 parent 748bc9b commit ccac7ee

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,52 @@ jobs:
139139
if: matrix.run_cli == 'yes'
140140
run: cargo run --release --target ${{ matrix.target }}
141141
shell: bash
142+
143+
builds:
144+
name: Builds
145+
runs-on: ${{ matrix.os }}
146+
strategy:
147+
fail-fast: false
148+
matrix:
149+
include:
150+
- os: windows-latest
151+
target: x86_64-pc-windows-msvc
152+
- os: windows-latest
153+
target: aarch64-pc-windows-msvc
154+
- os: ubuntu-latest
155+
target: x86_64-unknown-linux-musl
156+
run_cli: "yes"
157+
# - os: ubuntu-latest
158+
# target: aarch64-unknown-linux-gnu
159+
# - os: ubuntu-latest
160+
# target: arm-unknown-linux-gnueabihf
161+
- os: macos-latest
162+
target: x86_64-apple-darwin
163+
run_cli: "yes"
164+
- os: macos-14
165+
target: aarch64-apple-darwin
166+
run_cli: "yes"
167+
# - os: ubuntu-latest
168+
# target: x86_64-unknown-linux-gnu
169+
# - os: ubuntu-latest
170+
# target: aarch64-unknown-linux-musl
171+
steps:
172+
- name: Checkout
173+
uses: actions/checkout@v4
174+
175+
- name: Rust Tool Chain setup
176+
uses: dtolnay/rust-toolchain@stable
177+
with:
178+
toolchain: stable
179+
targets: ${{ matrix.target }}
180+
181+
- name: Cargo Fetch
182+
run: cargo fetch
183+
shell: bash
184+
185+
- name: Run Tests
186+
run: cargo test --frozen --all-features
187+
shell: bash
142188

143189
- name: Build
144190
run: cargo build --release --target ${{ matrix.target }}

0 commit comments

Comments
 (0)