Skip to content

Commit e9853cc

Browse files
committed
Fix build workflows
1 parent 0e47cf3 commit e9853cc

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
MSRV=$(grep '^rust-version' Cargo.toml | cut -d '"' -f 2)
2525
echo "msrv=$MSRV" >> $GITHUB_OUTPUT
26-
build:
26+
lint:
2727
needs: prepare
2828
strategy:
2929
matrix:
@@ -52,3 +52,30 @@ jobs:
5252
run: cargo clippy --all-targets --all-features -- -D warnings
5353
- name: Run tests
5454
run: cargo test --verbose
55+
56+
build:
57+
strategy:
58+
matrix:
59+
# x86_64-unknown-linux-gnu build is included in the lint job, so skip it here
60+
targets:
61+
- target: x86_64-unknown-linux-musl
62+
os: ubuntu-latest
63+
- target: aarch64-unknown-linux-gnu
64+
os: ubuntu-latest
65+
- target: aarch64-unknown-linux-musl
66+
os: ubuntu-latest
67+
- target: x86_64-apple-darwin
68+
os: macos-latest
69+
- target: aarch64-apple-darwin
70+
os: macos-latest
71+
runs-on: ${{ matrix.targets.os }}
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v4
75+
- name: Setup
76+
run: rustup target add ${{ matrix.targets.target }}
77+
- name: Build
78+
uses: houseabsolute/actions-rust-cross@v1.0.0
79+
with:
80+
command: build
81+
target: ${{ matrix.targets.target }}

0 commit comments

Comments
 (0)