name: "Swift analysis using autobuild" description: "Tests creation of a Swift database using autobuild" versions: ["latest", "cached", "nightly-latest"] # Swift autobuilder is only supported on MacOS for private beta operatingSystems: ["macos"] env: CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT: "true" steps: - uses: ./../action/init with: languages: swift tools: ${{ steps.prepare-test.outputs.tools-url }} env: TEST_MODE: true - uses: ./../action/autobuild - uses: ./../action/analyze id: analysis env: TEST_MODE: true - name: Check database shell: bash 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