Skip to content

Commit 91d324e

Browse files
committed
Add App CI
Signed-off-by: Kaito Udagawa <umireon@kaito.tokyo>
1 parent f8042ea commit 91d324e

2 files changed

Lines changed: 94 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
# SPDX-FileCopyrightText: 2026 Kaito Udagawa <umireon@kaito.tokyo>
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
name: App build macOS
8+
9+
# file: .github/workflows/app-build-macos.yml
10+
# author: Kaito Udagawa <umireon@kaito.tokyo>
11+
# date: 2026-06-29
12+
13+
on:
14+
workflow_call:
15+
inputs:
16+
environment:
17+
description: Runner environment
18+
required: false
19+
type: string
20+
default: ''
21+
22+
permissions: {}
23+
24+
env:
25+
HOMEBREW_NO_ANALYTICS: '1'
26+
HOMEBREW_NO_AUTO_UPDATE: '1'
27+
HOMEBREW_NO_ENV_HINTS: '1'
28+
HOMEBREW_NO_INSTALL_CLEANUP: '1'
29+
30+
jobs:
31+
app-build-macos-swift:
32+
runs-on: macos-26
33+
34+
permissions:
35+
contents: read
36+
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
40+
with:
41+
persist-credentials: false
42+
43+
- name: Generate project using XcodeGen
44+
shell: bash --noprofile --norc -euo pipefail -O nullglob {0}
45+
run: |
46+
brew install xcodegen
47+
xcodegen generate
48+
49+
- name: Build
50+
shell: bash --noprofile --norc -euo pipefail -O nullglob {0}
51+
run: |
52+
xcodebuild

.github/workflows/app.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
# SPDX-FileCopyrightText: 2026 Kaito Udagawa <umireon@kaito.tokyo>
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
name: App CI
8+
9+
# file: .github/workflows/app.yml
10+
# author: Kaito Udagawa <umireon@kaito.tokyo>
11+
# date: 2026-06-29
12+
13+
on:
14+
pull_request:
15+
branches: [main]
16+
merge_group:
17+
push:
18+
branches: [main]
19+
tags: ['*']
20+
21+
permissions: {}
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
app-build-macos:
29+
permissions:
30+
contents: read
31+
uses: ./.github/workflows/app-build-macos.yml
32+
33+
accept-app:
34+
if: always()
35+
needs:
36+
- app-build-macos
37+
runs-on: ubuntu-slim
38+
permissions: {}
39+
steps:
40+
- name: Check job results
41+
run: |
42+
[[ "${{ needs.app-build-macos.result }}" == 'success' ]]

0 commit comments

Comments
 (0)