adds support for compiling against Musl #1903
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 | |
on: | |
push: | |
branches: | |
- main | |
- 7.x.x | |
paths: | |
- '**.swift' | |
pull_request: | |
paths: | |
- '**.swift' | |
- '**.yml' | |
workflow_dispatch: | |
env: | |
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DISABLE_LOCALSTACK : "false" | |
AWS_ENABLE_LOGGING : "true" | |
AWS_LOG_LEVEL: "debug" | |
STRICT_CONCURRENCY: "true" | |
jobs: | |
macos: | |
runs-on: macOS-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: SPM build | |
run: swift build | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- swift:5.9 | |
- swift:5.10 | |
- swift:6.0 | |
services: | |
localstack: | |
image: localstack/localstack | |
container: | |
image: ${{ matrix.image }} | |
env: | |
LOCALSTACK_ENDPOINT : "http://localstack:4566" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Test Resource Prefix | |
# set AWS_TEST_RESOURCE_PREFIX environment variable to a random series of 8 letters | |
run: | | |
echo AWS_TEST_RESOURCE_PREFIX=$(cat /dev/urandom | tr -dc 'a-z' | head -c 8) >> $GITHUB_ENV | |
- name: Test | |
# Cannot run in parallel as APIGateway tests fail occasionally | |
run: | | |
swift test --enable-test-discovery |