diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..0d8c204 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,24 @@ +name: Pull request + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + tests: + name: Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main + with: + linux_build_command: "cd Guest && ./build.sh" + linux_exclude_swift_versions: '[{"swift_version": "5.9"}, {"swift_version": "5.10"}]' + enable_windows_checks: false + soundness: + name: Soundness + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main + with: + license_header_check_project_name: "Swift" + api_breakage_check_enabled: false + unacceptable_language_check_enabled: false + license_header_check_enabled: false + broken_symlink_check_enabled: false + format_check_enabled: false diff --git a/.license_header_template b/.license_header_template new file mode 100644 index 0000000..839651d --- /dev/null +++ b/.license_header_template @@ -0,0 +1,11 @@ +@@===----------------------------------------------------------------------===@@ +@@ +@@ This source file is part of the Swift open source project +@@ +@@ Copyright (c) YEARS Apple Inc. and the Swift project authors +@@ Licensed under Apache License v2.0 with Runtime Library Exception +@@ +@@ See https://swift.org/LICENSE.txt for license information +@@ See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +@@ +@@===----------------------------------------------------------------------===@@ diff --git a/Guest/build.sh b/Guest/build.sh index 79d1778..327005c 100755 --- a/Guest/build.sh +++ b/Guest/build.sh @@ -21,6 +21,6 @@ swift build --triple wasm32-unknown-none-wasm -c release --product Plotter for n in Bass HiHat Kick Mix; do swift build --triple wasm32-unknown-none-wasm -c release --product $n - cp "${bin_path}/${n}.wasm" $HOME + cp "${bin_path}/${n}.wasm" "$HOME" done