Try adding CI for MUSL #185
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: test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: { types: [opened, reopened, synchronize, ready_for_review] } | |
push: { branches: [ main ] } | |
jobs: | |
unit-tests: | |
uses: vapor/ci/.github/workflows/run-unit-tests.yml@main | |
secrets: inherit | |
integration-check: | |
runs-on: ubuntu-latest | |
container: swift:jammy | |
steps: | |
- uses: actions/checkout@v4 | |
with: { path: console-kit } | |
- uses: actions/checkout@v4 | |
with: { repository: 'vapor/vapor', path: vapor } | |
- run: swift package --package-path vapor edit console-kit --path console-kit | |
- run: swift test --package-path vapor | |
test-musl: | |
runs-on: ubuntu-latest | |
container: archlinux | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
# https://www.reddit.com/r/archlinux/comments/6qu4jt/comment/dl1t5m9/ | |
pacman -Sy --needed --noconfirm sudo git base-devel patchelf | |
useradd builduser -m | |
passwd -d builduser | |
printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers | |
sudo -u builduser bash -c 'cd ~ && git clone https://aur.archlinux.org/swift-bin.git && cd swift-bin && makepkg -si --noconfirm swift-bin' | |
- run: SWIFT_DETERMINISTIC_HASHING=1 swift test |