Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow #34

Merged
merged 10 commits into from
Mar 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,37 @@ jobs:
with:
command: test

build_misc:
name: Build miscellaneous systems
# For test vs build https://github.com/cross-rs/cross?tab=readme-ov-file#supported-targets

test_cross:
name: Test Android and Musl
strategy:
matrix:
target:
- x86_64-unknown-netbsd
- x86_64-unknown-freebsd
- aarch64-linux-android
- x86_64-unknown-linux-musl
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross --rev 085092c
- name: Cross Test
run: cross test --target ${{ matrix.target }}

build_cross:
name: Build BSDs
strategy:
matrix:
target:
- x86_64-unknown-freebsd
- x86_64-unknown-netbsd
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -78,10 +101,6 @@ jobs:
toolchain: stable
override: true
- name: Install Cross
run: |
CROSS_URL=https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
mkdir -p "$HOME/.bin"
curl -sfSL --retry-delay 10 --retry 5 "${CROSS_URL}" | tar zxf - -C "$HOME/.bin"
echo "$HOME/.bin" >> $GITHUB_PATH
- name: Run cross build
run: cargo install cross --git https://github.com/cross-rs/cross --rev 085092c
- name: Cross Test
run: cross build --target ${{ matrix.target }}
Loading