-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-template.yml
More file actions
36 lines (33 loc) · 1.34 KB
/
build-template.yml
File metadata and controls
36 lines (33 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#################################################################################################################################
# build-template.yml
# Created on 03/27/2025
#
# Copyright (C) 2025 Mehmet Bertan Tarakcioglu, Under the MIT License
#
# This file was originally created as part of the WatchDuck project CI Pipeline.
#################################################################################################################################
# Recommended usage of the reusable build workflow provided by BertantT/Swift-Executable-CI.
name: Build main
on:
push:
branches:
- main
pull_request:
paths:
- "**/*.swift"
merge_group:
workflow_dispatch:
inputs:
run_swiftlint:
type: boolean
required: true
default: true
description: "Run SwiftLint before building. Overridden if repo variable is false."
jobs:
call-build:
uses: BertanT/Swift-Executable-CI/.github/workflows/build.yml@ebe8abd9a650c65541bf5893509594c047f74584
with:
swift_toolchain_version: ${{ vars.SWIFT_TOOLCHAIN_VERSION }}
linux_sdk_url: ${{ vars.LINUX_SDK_URL }}
linux_sdk_checksum: ${{ vars.LINUX_SDK_CHECKSUM }}
run_swiftlint: ${{ vars.BUILD_RUN_SWIFTLINT != 'false' && (github.event_name != 'workflow_dispatch' || inputs.run_swiftlint) }}