imsg/.github/workflows/ci.yml
Peter Steinberger e833e0c898
Some checks are pending
CI / macos (push) Waiting to run
CI / linux-read-core (push) Waiting to run
pages / Deploy docs (push) Waiting to run
feat: add linux read-only build (#106)
2026-05-07 01:29:26 +01:00

45 lines
1.0 KiB
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Swift version
run: swift --version
- name: Install SwiftLint
run: brew install swiftlint
- name: Lint
run: make lint
- name: Test
run: make test
- name: Build
run: make build ARCHES="$(uname -m)"
linux-read-core:
runs-on: ubuntu-latest
container: swift:6.2.4-noble
steps:
- uses: actions/checkout@v6
- name: Swift version
run: swift --version
- name: Install Python
run: |
apt-get update
apt-get install -y --no-install-recommends python3
- name: Generate version
run: scripts/generate-version.sh
- name: Resolve dependencies
run: swift package resolve
- name: Patch dependencies
run: scripts/patch-deps.sh
- name: Test Linux read core
run: swift test
- name: Build CLI
run: swift build --product imsg