on: push: branches: - main pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build-linux: strategy: fail-fast: false matrix: host: - runner: ubuntu-24.04 arch: x86_64 - runner: ubuntu-24.04-arm arch: aarch64 runs-on: ${{ matrix.host.runner }} steps: - name: Checkout uses: actions/checkout@v6 - name: Build and test run: | docker compose run --build xtool bash -c \ "swift build --product xtool && .build/debug/xtool --help && swift test" build-macos: runs-on: macos-26 steps: - name: Checkout uses: actions/checkout@v6 - uses: ./.github/actions/configure-xcode - name: Build run: | swift build --product xtool && .build/debug/xtool --help - name: Run tests run: | swift test build-ios: runs-on: macos-26 steps: - name: Checkout uses: actions/checkout@v6 - uses: ./.github/actions/configure-xcode - name: Build run: | set -o pipefail \ && xcodebuild build \ -skipMacroValidation -skipPackagePluginValidation \ -scheme XKit -destination generic/platform=iOS \ | xcbeautify