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

feat: add x86_64-unknown-linux-musl build #264

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,35 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

musl:
name: Build and Test (musl)
runs-on: ubuntu-latest
container:
image: rust:1-alpine
env:
CARGO_BUILD_TARGET: x86_64-unknown-linux-musl
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Toolchain
shell: sh
run: |
apk add perl make musl-dev bash
- name: Build
run: |
cargo build --package maa-cli --locked \
--features vendored-openssl
- name: Install MaaCore
env:
MAA_CONFIG_DIR: ${{ github.workspace }}/maa-cli/config_examples
run: |
cargo run \
--features vendored-openssl \
-- install stable
echo "MAA_CORE_INSTALLED=true" >> "$GITHUB_ENV"
- name: Test
run: |
cargo test --package maa-cli --locked \
--features vendored-openssl \
-- --include-ignored
Loading