Skip to content

Commit 42698af

Browse files
authored
Merge pull request #22 from apple/github-actions-support
[CI] Add support for GitHub Actions
2 parents 9b4dc8a + d83a7dc commit 42698af

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
tests:
9+
name: Test
10+
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
11+
with:
12+
linux_build_command: "cd Guest && ./build.sh"
13+
linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]'
14+
enable_windows_checks: false
15+
soundness:
16+
name: Soundness
17+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
18+
with:
19+
license_header_check_project_name: "Swift"
20+
api_breakage_check_enabled: false
21+
unacceptable_language_check_enabled: false
22+
license_header_check_enabled: false
23+
broken_symlink_check_enabled: false
24+
format_check_enabled: false

.license_header_template

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@@===----------------------------------------------------------------------===@@
2+
@@
3+
@@ This source file is part of the Swift open source project
4+
@@
5+
@@ Copyright (c) YEARS Apple Inc. and the Swift project authors
6+
@@ Licensed under Apache License v2.0 with Runtime Library Exception
7+
@@
8+
@@ See https://swift.org/LICENSE.txt for license information
9+
@@ See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
@@
11+
@@===----------------------------------------------------------------------===@@

Guest/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ swift build --triple wasm32-unknown-none-wasm -c release --product Plotter
2121
for n in Bass HiHat Kick Mix; do
2222
swift build --triple wasm32-unknown-none-wasm -c release --product $n
2323

24-
cp "${bin_path}/${n}.wasm" $HOME
24+
cp "${bin_path}/${n}.wasm" "$HOME"
2525
done
2626

0 commit comments

Comments
 (0)