File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 54
54
with :
55
55
persist-credentials : false
56
56
- name : Check for Semantic Version label
57
- uses : apple/swift-nio/.github/actions/pull_request_semver_label_checker@main
57
+ uses : apple/swift-nio/.github/actions/pull_request_semver_label_checker@main
58
58
59
59
# until there is a support for musl in swiftlang/github-workflows
60
60
# https://github.com/swiftlang/github-workflows/issues/34
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # #===----------------------------------------------------------------------===##
3
+ # #
4
+ # # This source file is part of the SwiftAWSLambdaRuntime open source project
5
+ # #
6
+ # # Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
7
+ # # Licensed under Apache License v2.0
8
+ # #
9
+ # # See LICENSE.txt for license information
10
+ # # See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
11
+ # #
12
+ # # SPDX-License-Identifier: Apache-2.0
13
+ # #
14
+ # #===----------------------------------------------------------------------===##
15
+
16
+ set -euo pipefail
17
+
18
+ log () { printf -- " ** %s\n" " $* " >&2 ; }
19
+ error () { printf -- " ** ERROR: %s\n" " $* " >&2 ; }
20
+ fatal () { error " $@ " ; exit 1; }
21
+
22
+ test -n " ${SWIFT_VERSION:- } " || fatal " SWIFT_VERSION unset"
23
+ test -n " ${COMMAND:- } " || fatal " COMMAND unset"
24
+ test -n " ${EXAMPLE:- } " || fatal " EXAMPLE unset"
25
+ swift_version=" $SWIFT_VERSION "
26
+ command=" $COMMAND "
27
+ example=" $EXAMPLE "
28
+
29
+ pushd Examples/" $example " > /dev/null
30
+
31
+ log " Running command with Swift $SWIFT_VERSION "
32
+ eval " $command "
33
+
34
+ popd
You can’t perform that action at this time.
0 commit comments