Skip to content

6.5

6.5 #33

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Build Test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
xcode-26:
runs-on: macos-26
env:
DEVELOPER_DIR: /Applications/Xcode_26.4.1.app/Contents/Developer
steps:
- uses: actions/checkout@v5
- name: Version
run: swift --version
- name: Build
run: swift build -v
- name: Test with coverage
run: swift test --enable-code-coverage -v
- name: Export LCOV
id: coverage
run: |
COVERAGE_PATH="$(swift test --show-codecov-path)"
CODECOV_DIR="$(dirname "$COVERAGE_PATH")"
BIN_PATH="$(swift build --show-bin-path)"
TEST_BINARY="$BIN_PATH/SwiftNEWPackageTests.xctest/Contents/MacOS/SwiftNEWPackageTests"
xcrun llvm-cov export "$TEST_BINARY" \
-instr-profile "$CODECOV_DIR/default.profdata" \
-format=lcov \
-ignore-filename-regex='/.build/|/Tests/' \
| sed "s#SF:$PWD/#SF:#" > coverage.raw.lcov
ruby .github/scripts/filter_lcov.rb coverage.raw.lcov coverage.lcov
echo "path=coverage.lcov" >> "$GITHUB_OUTPUT"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
files: ${{ steps.coverage.outputs.path }}
flags: swiftpm
name: SwiftNEW
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true
xcode-16-3:
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer
steps:
- uses: actions/checkout@v5
- name: Version
run: swift --version
- name: Build
run: swift build -v
- name: Test
run: swift test -v
xcode-15-4:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
steps:
- uses: actions/checkout@v5
- name: Version
run: swift --version
- name: Build
run: swift build -v
# - name: Test
# run: swift test -v
xcode-15-0:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
steps:
- uses: actions/checkout@v5
- name: Version
run: swift --version
- name: Build
run: swift build -v
# - name: Test
# run: swift test -v