Bump the swiftlang-actions group with 3 updates #1260
Workflow file for this run
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: Pull request | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| paths-ignore: | |
| - '*.md' | |
| - 'Proposals/**' | |
| jobs: | |
| tests: | |
| name: Test (SwiftPM) | |
| uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.12 | |
| with: | |
| linux_swift_versions: '["nightly-main"]' | |
| windows_swift_versions: '["nightly-main"]' | |
| enable_macos_checks: false | |
| macos_xcode_versions: '["16.3"]' | |
| macos_versions: '["tahoe"]' | |
| enable_wasm_sdk_build: true | |
| wasm_sdk_versions: '["nightly-main"]' | |
| enable_cross_pr_testing: true | |
| enable_android_sdk_build: true | |
| android_sdk_versions: '["nightly-main"]' | |
| cmake_build: | |
| name: Build (CMake) | |
| runs-on: ubuntu-latest | |
| container: swiftlang/swift:nightly-main-noble | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v7 | |
| - name: Install Dependencies | |
| shell: bash | |
| run: apt update && apt install -y cmake ninja-build jq | |
| - name: Configure Project | |
| shell: bash | |
| run: | | |
| mkdir -p build/.cmake/api/v1/query | |
| touch build/.cmake/api/v1/query/codemodel-v2 | |
| cmake -G 'Ninja' -B build -S . -DCMAKE_C_COMPILER=clang -DCMAKE_Swift_COMPILER=swiftc -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=YES | |
| - name: Validate CMake File Lists Match SwiftPM | |
| shell: bash | |
| run: | | |
| swift package describe --type json | jq '.targets[] | select(.name == "FoundationEssentials") | .sources[]' | sort > /tmp/swiftpm-essentials | |
| cat build/.cmake/api/v1/reply/target-FoundationEssentials-*.json | jq '.sources[].path[29:]' | sort > /tmp/cmake-essentials | |
| swift package describe --type json | jq '.targets[] | select(.name == "FoundationInternationalization") | .sources[]' | sort > /tmp/swiftpm-internationalization | |
| cat build/.cmake/api/v1/reply/target-FoundationInternationalization-*.json | jq '.sources[].path[39:]' | sort > /tmp/cmake-internationalization | |
| exit_code=0 | |
| diff -u0 -L "SwiftPM" -L "CMake" /tmp/swiftpm-essentials /tmp/cmake-essentials && echo "::notice::FoundationEssentials CMakeLists.txt matches SwiftPM" || { echo "::error::FoundationEssentials CMakeLists.txt does not match SwiftPM"; exit_code=1; } | |
| diff -u0 -L "SwiftPM" -L "CMake" /tmp/swiftpm-internationalization /tmp/cmake-internationalization && echo "::notice::FoundationInternationalization CMakeLists.txt matches SwiftPM" || { echo "::error::FoundationInternationalization CMakeLists.txt does not match SwiftPM"; exit_code=1; } | |
| exit $exit_code | |
| - name: Build Project | |
| shell: bash | |
| run: cmake --build build | |
| soundness: | |
| name: Soundness | |
| uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.12 | |
| with: | |
| license_header_check_project_name: "Swift.org" | |
| license_header_check_enabled: false | |
| docs_check_enabled: false | |
| format_check_enabled: false | |
| unacceptable_language_check_enabled: false | |
| api_breakage_check_enabled: false |