github: Test with musl #57
Workflow file for this run
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: CI Tests (musl) | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-buildx-action@v3 | |
- name: Build container | |
run: | | |
docker buildx build --load -t dqlite --build-arg=DQLITE_LOCATION=. . | |
- name: Run tests | |
run: | | |
bins="unit-test integration-test raft-core-fuzzy-test raft-core-integration-test raft-core-unit-test raft-uv-integration-test raft-uv-unit-test" | |
docker run --name gha dqlite make -j$(nproc) $bins LDFLAGS=-all-static | |
for bin in $bins; do docker cp "gha:/src/dqlite/$bin" $bin; done | |
for bin in $bins; do LIBDQLITE_TRACE=1 ./$bin || touch any-failed; done | |
test -e any-failed && false |