-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and test with SwiftWasm 5.6 on CI (#475)
Had to drop support for Swift 5.4/5.5 and macOS 5.6 jobs, see #475 (comment) for more details. Linux builds and `codecov` job were updated to use nightly Swift, which have crashes reproducible in 5.6.0 release fixed. Also applied a few formatting changes with the latest SwiftFormat.
- Loading branch information
1 parent
eef6bb2
commit fd64eaf
Showing
23 changed files
with
185 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,121 +6,106 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
swiftwasm_bundle_5_4: | ||
swiftwasm_bundle_5_6: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: swiftwasm/swiftwasm-action@v5.4 | ||
- uses: swiftwasm/swiftwasm-action@main | ||
with: | ||
shell-action: carton bundle --product TokamakDemo | ||
|
||
swiftwasm_test_5_4: | ||
swiftwasm_test_5_6: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: swiftwasm/swiftwasm-action@v5.4 | ||
- uses: swiftwasm/swiftwasm-action@main | ||
with: | ||
shell-action: carton test | ||
|
||
swiftwasm_bundle_5_5: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: swiftwasm/[email protected] | ||
with: | ||
shell-action: carton bundle --product TokamakDemo | ||
|
||
swiftwasm_test_5_5: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: swiftwasm/[email protected] | ||
with: | ||
shell-action: carton test | ||
|
||
core_macos_build: | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run the test suite on macOS, build the demo project for iOS | ||
shell: bash | ||
run: | | ||
set -ex | ||
sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ | ||
# avoid building unrelated products for testing by specifying the test product explicitly | ||
swift build --product TokamakPackageTests | ||
`xcrun --find xctest` .build/debug/TokamakPackageTests.xctest || | ||
(cp -r /var/folders/*/*/*/*Tests . ; exit 1) | ||
rm -rf Sources/TokamakGTKCHelpers/*.c | ||
xcodebuild -version | ||
# Make sure Tokamak can be built on macOS so that Xcode autocomplete works. | ||
# Disable macOS builds until Monterey is available on GHA. | ||
# xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \ | ||
# CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ | ||
# xcpretty --color | ||
cd "NativeDemo" | ||
xcodebuild -scheme iOS -destination 'generic/platform=iOS' \ | ||
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ | ||
xcpretty --color | ||
cd .. | ||
./benchmark.sh | ||
- name: Upload failed snapshots | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ failure() }} | ||
with: | ||
name: Failed snapshots | ||
path: '*Tests' | ||
|
||
gtk_macos_build: | ||
runs-on: macos-11 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the GTK renderer on macOS | ||
shell: bash | ||
run: | | ||
set -ex | ||
sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ | ||
brew install gtk+3 | ||
make build | ||
# Disabled until macos-12 is available on GitHub Actions, which is required for Xcode 13.3 | ||
# core_macos_build: | ||
# runs-on: macos-11 | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Run the test suite on macOS, build the demo project for iOS | ||
# shell: bash | ||
# run: | | ||
# set -ex | ||
# sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ | ||
# # avoid building unrelated products for testing by specifying the test product explicitly | ||
# swift build --product TokamakPackageTests | ||
# `xcrun --find xctest` .build/debug/TokamakPackageTests.xctest || | ||
# (cp -r /var/folders/*/*/*/*Tests . ; exit 1) | ||
|
||
# rm -rf Sources/TokamakGTKCHelpers/*.c | ||
|
||
# xcodebuild -version | ||
|
||
# # Make sure Tokamak can be built on macOS so that Xcode autocomplete works. | ||
# # Disable macOS builds until Monterey is available on GHA. | ||
# # xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \ | ||
# # CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ | ||
# # xcpretty --color | ||
|
||
# cd "NativeDemo" | ||
# xcodebuild -scheme iOS -destination 'generic/platform=iOS' \ | ||
# CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ | ||
# xcpretty --color | ||
# cd .. | ||
|
||
# ./benchmark.sh | ||
|
||
# - name: Upload failed snapshots | ||
# uses: actions/upload-artifact@v2 | ||
# if: ${{ failure() }} | ||
# with: | ||
# name: Failed snapshots | ||
# path: '*Tests' | ||
|
||
# gtk_macos_build: | ||
# runs-on: macos-11 | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Build the GTK renderer on macOS | ||
# shell: bash | ||
# run: | | ||
# set -ex | ||
# sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ | ||
|
||
# brew install gtk+3 | ||
|
||
# make build | ||
|
||
gtk_ubuntu_18_04_build: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: swiftlang/swift:nightly-bionic | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the GTK renderer on Ubuntu 18.04 | ||
shell: bash | ||
run: | | ||
set -ex | ||
sudo apt-get update | ||
sudo apt-get install libgtk+-3.0 gtk+-3.0 | ||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libgtk+-3.0 gtk+-3.0 | ||
make build | ||
gtk_ubuntu_20_04_build: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
container: | ||
image: swiftlang/swift:nightly-focal | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the GTK renderer on Ubuntu 20.04 | ||
shell: bash | ||
run: | | ||
set -ex | ||
sudo apt-get update | ||
sudo apt-get install libgtk+-3.0 gtk+-3.0 | ||
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libgtk+-3.0 gtk+-3.0 | ||
make build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,6 @@ Pods/ | |
# SwiftPM | ||
.build | ||
/Packages | ||
|
||
# VS Code | ||
.vscode/launch.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
wasm-5.6.0-RELEASE |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.