name: "Swift analysis using a custom build command" description: "Tests creation of a Swift database using custom build" versions: - linked - default - nightly-latest operatingSystems: - macos installGo: true installDotNet: true env: DOTNET_GENERATE_ASPNET_CERTIFICATE: "false" steps: - name: Use Xcode 16 if: runner.os == 'macOS' && matrix.version != 'nightly-latest' run: sudo xcode-select -s "/Applications/Xcode_16.app" - uses: ./../action/init id: init with: languages: swift tools: ${{ steps.prepare-test.outputs.tools-url }} - name: Check working directory run: pwd - name: Build code run: ./build.sh - uses: ./../action/analyze id: analysis with: upload-database: false - name: Check database run: | SWIFT_DB="${{ fromJson(steps.analysis.outputs.db-locations).swift }}" if [[ ! -d "$SWIFT_DB" ]]; then echo "Did not create a database for Swift." exit 1 fi