Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / .github / workflows / build.yml

build.yml53 lines · 1.3 KiBRaw
1on:
2 push:
3 branches:
4 - main
5 pull_request:
6concurrency:
7 group: ${{ github.workflow }}-${{ github.ref }}
8 cancel-in-progress: true
9env:
10 XTL_CI: "1"
11jobs:
12 build-linux:
13 strategy:
14 fail-fast: false
15 matrix:
16 host:
17 - runner: ubuntu-24.04
18 arch: x86_64
19 - runner: ubuntu-24.04-arm
20 arch: aarch64
21 runs-on: ${{ matrix.host.runner }}
22 steps:
23 - name: Checkout
24 uses: actions/checkout@v6
25 - name: Build and test
26 run: |
27 docker compose run --build -e XTL_CI=1 xtool bash -c \
28 "swift build --product xtool && .build/debug/xtool --help && swift test"
29 build-macos:
30 runs-on: xcode-27
31 steps:
32 - name: Checkout
33 uses: actions/checkout@v6
34 - uses: ./.github/actions/configure-xcode
35 - name: Build
36 run: |
37 swift build --product xtool && .build/debug/xtool --help
38 - name: Run tests
39 run: |
40 swift test
41 build-ios:
42 runs-on: xcode-27
43 steps:
44 - name: Checkout
45 uses: actions/checkout@v6
46 - uses: ./.github/actions/configure-xcode
47 - name: Build
48 run: |
49 set -o pipefail \
50 && xcodebuild build \
51 -skipMacroValidation -skipPackagePluginValidation \
52 -scheme XKit -destination generic/platform=iOS \
53 | xcbeautify