Swift6 prep #240
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 ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: macos-14 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'swift' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
#- name: Autobuild | |
# uses: github/codeql-action/autobuild@v2 | |
# ^^ doesn't work for a purely swift package | |
- name: build | |
run: swift build | |
#- name: build and test | |
# run: swift test --enable-code-coverage -v | |
# or | |
# - run: xcodebuild -scheme FooBar -sdk iphonesimulator build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:${{matrix.language}}" | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout Project | |
uses: actions/checkout@v4 | |
- name: Show Build Version | |
run: xcodebuild -version | |
# - name: Show Build Settings | |
# run: xcodebuild -scheme SwiftViz -showBuildSettings | |
# - name: Show Build SDK | |
# run: xcodebuild -scheme SwiftViz -showsdks | |
# xcodebuild | |
- name: build and test | |
run: swift test --enable-code-coverage -v | |
#- name: Xcode iOS build | |
#run: xcodebuild clean build -scheme SwiftVizScale-Package -destination 'platform=iOS Simulator,OS=15.5,name=iPhone 8' -showBuildTimingSummary | |
#- name: check against API breaking changes | |
# run: swift package diagnose-api-breaking-changes 0.5.0 | |
# - name: env review | |
# run: env | |
#- name: doc utility build verification | |
# run: | | |
# cd utils | |
# swift build | |
- name: Prepare Code Coverage | |
run: xcrun llvm-cov export -format="lcov" .build/debug/SwiftVizScalePackageTests.xctest/Contents/MacOS/SwiftVizScalePackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
- name: Upload to CodeCov.io | |
run: bash <(curl https://codecov.io/bash) | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |