File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change 9
9
uses : swiftlang/github-workflows/.github/workflows/soundness.yml@main
10
10
with :
11
11
api_breakage_check_enabled : false
12
+ # FIXME: Something is off with the format task and it gets "stuck", need to investigate
13
+ format_check_enabled : false
12
14
license_header_check_project_name : Swift.org
15
+ # FIXME: we're about to remove _Subprocess immediately anyway, so rather than fixing it one by one remove this adjusted list and use the default again ASAP
13
16
# swift-subprocess includes the word "kill" because SIGKILL signal handling so we allow it
14
17
unacceptable_language_check_word_list : " blacklist whitelist slave master sane sanity insane insanity killed killing hang hung hanged hanging" # ignore-unacceptable-language
15
18
29
32
steps :
30
33
- uses : actions/checkout@v4
31
34
- name : Install Make
32
- run : apt update && apt install -y make
35
+ run : apt-get -qq update && apt-get -qq install -y make
33
36
- name : Install JDK
34
37
run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
35
38
# TODO: not using setup-java since incompatible with the swiftlang/swift base image
69
72
steps :
70
73
- uses : actions/checkout@v4
71
74
- name : Install Make
72
- run : apt update && apt install -y make
75
+ run : apt-get -qq update && apt-get -qq install -y make
73
76
- name : Install JDK
74
77
run : " bash -xc 'JDK_VENDOR=${{ matrix.jdk_vendor }} ./docker/install_jdk.sh'"
75
78
- name : Generate sources (make) (Temporary)
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # ===----------------------------------------------------------------------===//
3
+ #
4
+ # This source file is part of the Swift.org open source project
5
+ #
6
+ # Copyright (c) 2024 Apple Inc. and the Swift project authors
7
+ # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ #
9
+ # See https://swift.org/LICENSE.txt for license information
10
+ # See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ===----------------------------------------------------------------------===//
13
+
14
+ set -euo pipefail
15
+
16
+ log () { printf -- " ** %s\n" " $* " >&2 ; }
17
+ error () { printf -- " ** ERROR: %s\n" " $* " >&2 ; }
18
+ fatal () { error " $@ " ; exit 1; }
19
+
20
+
21
+ if [[ -f .swiftformatignore ]]; then
22
+ log " Found swiftformatignore file..."
23
+
24
+ log " Running swift format format..."
25
+ tr ' \n' ' \0' < .swiftformatignore| xargs -0 -I% printf ' ":(exclude)%" ' | xargs git ls-files -z ' *.swift' | xargs -0 swift format format --parallel --in-place
26
+
27
+ log " Running swift format lint..."
28
+
29
+ tr ' \n' ' \0' < .swiftformatignore | xargs -0 -I% printf ' ":(exclude)%" ' | xargs git ls-files -z ' *.swift' | xargs -0 swift format lint --strict --parallel
30
+ else
31
+ log " Running swift format format..."
32
+ git ls-files -z ' *.swift' | xargs -0 swift format format --parallel --in-place
33
+
34
+ log " Running swift format lint..."
35
+
36
+ git ls-files -z ' *.swift' | xargs -0 swift format lint --strict --parallel
37
+ fi
38
+
39
+
40
+
41
+ log " Checking for modified files..."
42
+
43
+ GIT_PAGER=' ' git diff --exit-code ' *.swift'
44
+
45
+ log " ✅ Found no formatting issues."
You can’t perform that action at this time.
0 commit comments