Skip to content

Android support (#642) #1263

Android support (#642)

Android support (#642) #1263

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: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.2"
- name: Build
run: swift build --build-tests --quiet
- name: Run tests (Swift testing)
run: swift test --skip-build --no-parallel --disable-xctest
- name: Run tests (XCTest)
run: swift test --skip-build --no-parallel --disable-swift-testing
build-windows:
runs-on: windows-latest
timeout-minutes: 30
steps:
- name: Swift Install
uses: compnerd/gha-setup-swift@main
with:
branch: swift-6.1-branch
tag: 6.1-DEVELOPMENT-SNAPSHOT-2025-01-22-a
- uses: actions/checkout@v4
- name: Build
run: |
swift build --build-tests --quiet
- name: Run tests (Swift testing)
run: swift test --skip-build --no-parallel --disable-xctest
run: swift test --skip-build --no-parallel --disable-swift-testing

Check failure on line 51 in .github/workflows/swift.yml

View workflow run for this annotation

GitHub Actions / Swift

Invalid workflow file

The workflow is not valid. .github/workflows/swift.yml (Line: 51, Col: 9): 'run' is already defined
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: skiptools/swift-android-action@v2
with:
build-tests: false