Use static linking for the from-source feature #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# bundled-test: | |
# strategy: | |
# matrix: | |
# os: [ | |
# ubuntu-latest, | |
# macos-latest, | |
# macos-14, # macOS arm runner | |
# windows-latest, | |
# ] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Test bundled | |
# run: | | |
# cargo b --features bundled -vv | |
# cargo t --features bundled create | |
# cargo t --features bundled --examples | |
from-source-test: | |
strategy: | |
matrix: | |
os: [ | |
macos-latest, | |
macos-14, | |
ubuntu-latest, | |
windows-latest, | |
] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install bison | |
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }} | |
run: | | |
brew install bison gcc | |
- name: Test from-source | |
run: | | |
cargo b --features from-source -vv | |
cargo t --features from-source create | |
cargo t --features from-source --examples | |
# from-source-linux-arm-test: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Set up QEMU for ARM64 emulation | |
# uses: docker/setup-qemu-action@v2 | |
# with: | |
# platforms: arm64 | |
# | |
# - name: Run test in ARM64 environment | |
# run: | | |
# docker run --rm --platform linux/arm64 \ | |
# -v ${{ github.workspace }}:/workspace \ | |
# -w /workspace \ | |
# rust:latest /bin/bash -c " | |
# cargo build --features from-source -vv | |
# cargo test --features from-source create | |
# cargo test --features from-source --examples | |
# " |