CI / Build and test (pull_request) Canceled after 0s
Documentation / Build documentation (pull_request) Canceled after 0s
Documentation / Deploy to GitHub Pages (pull_request) Canceled after 0s
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
# ===----------------------------------------------------------------------===
|
|
#
|
|
# This source file is part of the Amiibo Service open source project
|
|
#
|
|
# Copyright (c) 2026 Röck+Cöde VoF. and the Amiibo Service project authors
|
|
# Licensed under Apache license v2.0
|
|
#
|
|
# See LICENSE for license information
|
|
# See CONTRIBUTORS for the list of Amiibo Service project authors
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# ===----------------------------------------------------------------------===
|
|
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Build and test
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Check out
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Select Xcode
|
|
uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: latest-stable
|
|
|
|
- name: Show toolchain
|
|
run: swift --version
|
|
|
|
- name: Cache build
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .build
|
|
key: spm-${{ runner.os }}-${{ hashFiles('Package.resolved') }}
|
|
restore-keys: spm-${{ runner.os }}-
|
|
|
|
- name: Build
|
|
run: make lib-build
|
|
|
|
- name: Test
|
|
run: make lib-test
|