Skip to content

Commit

Permalink
try to validate linkage on all platforms
Browse files Browse the repository at this point in the history
The build should also build a binary, which needs to be linked.
  • Loading branch information
Byron committed Mar 2, 2024
1 parent 21a73ee commit 8f26da4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cross-platform-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
RUST_BACKTRACE: 1
strategy:
matrix:
build: [linux, linux-arm, macos, win-msvc, win-gnu]
build: [ linux, linux-arm, macos, win-msvc, win-gnu, win32-gnu, win32-msvc ]
include:
- build: linux
os: ubuntu-latest
Expand All @@ -42,6 +42,14 @@ jobs:
os: windows-2019
rust: stable
target: x86_64-pc-windows-gnu
- build: win32-gnu
os: windows-latest
rust: stable
target: i686-pc-windows-gnu
- build: win32-msvc
os: windows-latest
rust: stable
target: i686-pc-windows-msvc

steps:
- name: Checkout repository
Expand All @@ -64,6 +72,8 @@ jobs:
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "target dir is: ${{ env.TARGET_DIR }}"
- name: Build (and link)
run: ${{ env.CARGO }} build ${{ env.TARGET_FLAGS }}
- name: Run tests
run: ${{ env.CARGO }} test ${{ env.TARGET_FLAGS }}
- name: Run fmt
Expand Down

0 comments on commit 8f26da4

Please sign in to comment.