update workflows for macOS, Linux and Android #954
This file contains hidden or 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: build | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| xcode_16: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: 🔍 Xcode Select | |
| run: | | |
| XCODE_PATH=`mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode' && kMDItemVersion = '16.*'" -onlyin /Applications | head -1` | |
| echo "DEVELOPER_DIR=$XCODE_PATH/Contents/Developer" >> $GITHUB_ENV | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build | |
| - name: Test | |
| run: swift test | |
| timeout-minutes: 1 | |
| linux_swift_6_0: | |
| runs-on: ubuntu-latest | |
| container: swift:6.0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Packages | |
| run: sudo apt-get install liburing-dev libavahi-compat-libdnssd-dev libavahi-client-dev | |
| - name: Version | |
| run: swift --version | |
| - name: Build | |
| run: swift build --build-tests | |
| - name: Test | |
| run: swift test --skip-build | |
| linux_swift_6_0_android: | |
| runs-on: ubuntu-latest | |
| container: swift:6.0.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Version | |
| run: swift --version | |
| - name: Install SDK | |
| run: swift sdk install https://github.com/finagolfin/swift-android-sdk/releases/download/6.0.2/swift-6.0.2-RELEASE-android-24-0.1.artifactbundle.tar.gz --checksum d75615eac3e614131133c7cc2076b0b8fb4327d89dce802c25cd53e75e1881f4 | |
| - name: Build | |
| run: swift build --swift-sdk aarch64-unknown-linux-android24 |