mirror of
https://github.com/xtool-org/xtool.git
synced 2026-02-04 11:53:30 +01:00
Notably: - Build xtool with Swift 6.2 - Resolve https://github.com/advisories/GHSA-xvr7-p2c6-j83w. That advisory shouldn't really affect us since we don't use NIO as a server but good hygiene anyway.
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
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@v4
|
|
- name: Build
|
|
run: |
|
|
docker compose run --build --rm xtool bash -c \
|
|
"swift build --product xtool && .build/debug/xtool --help"
|
|
build-macos:
|
|
runs-on: macos-26
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Build
|
|
run: |
|
|
swift build --product xtool && .build/debug/xtool --help
|
|
build-ios:
|
|
runs-on: macos-26
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Build
|
|
run: |
|
|
set -o pipefail \
|
|
&& xcodebuild build \
|
|
-skipMacroValidation -skipPackagePluginValidation \
|
|
-scheme XKit -destination generic/platform=iOS \
|
|
| xcbeautify
|