|
6 | 6 | branches: [main]
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - swiftwasm_bundle_5_4: |
| 9 | + swiftwasm_bundle_5_6: |
10 | 10 | runs-on: ubuntu-20.04
|
11 | 11 |
|
12 | 12 | steps:
|
13 | 13 | - uses: actions/checkout@v2
|
14 |
| - - uses: swiftwasm/swiftwasm-action@v5.4 |
| 14 | + - uses: swiftwasm/swiftwasm-action@main |
15 | 15 | with:
|
16 | 16 | shell-action: carton bundle --product TokamakDemo
|
17 | 17 |
|
18 |
| - swiftwasm_test_5_4: |
| 18 | + swiftwasm_test_5_6: |
19 | 19 | runs-on: ubuntu-20.04
|
20 | 20 |
|
21 | 21 | steps:
|
22 | 22 | - uses: actions/checkout@v2
|
23 |
| - - uses: swiftwasm/swiftwasm-action@v5.4 |
| 23 | + - uses: swiftwasm/swiftwasm-action@main |
24 | 24 | with:
|
25 | 25 | shell-action: carton test
|
26 | 26 |
|
27 |
| - swiftwasm_bundle_5_5: |
28 |
| - runs-on: ubuntu-20.04 |
29 |
| - |
30 |
| - steps: |
31 |
| - - uses: actions/checkout@v2 |
32 |
| - - uses: swiftwasm/swiftwasm-action@v5.5 |
33 |
| - with: |
34 |
| - shell-action: carton bundle --product TokamakDemo |
35 |
| - |
36 |
| - swiftwasm_test_5_5: |
37 |
| - runs-on: ubuntu-20.04 |
38 |
| - |
39 |
| - steps: |
40 |
| - - uses: actions/checkout@v2 |
41 |
| - - uses: swiftwasm/swiftwasm-action@v5.5 |
42 |
| - with: |
43 |
| - shell-action: carton test |
44 |
| - |
45 |
| - core_macos_build: |
46 |
| - runs-on: macos-11 |
47 |
| - |
48 |
| - steps: |
49 |
| - - uses: actions/checkout@v2 |
50 |
| - - name: Run the test suite on macOS, build the demo project for iOS |
51 |
| - shell: bash |
52 |
| - run: | |
53 |
| - set -ex |
54 |
| - sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ |
55 |
| - # avoid building unrelated products for testing by specifying the test product explicitly |
56 |
| - swift build --product TokamakPackageTests |
57 |
| - `xcrun --find xctest` .build/debug/TokamakPackageTests.xctest || |
58 |
| - (cp -r /var/folders/*/*/*/*Tests . ; exit 1) |
59 |
| -
|
60 |
| - rm -rf Sources/TokamakGTKCHelpers/*.c |
61 |
| -
|
62 |
| - xcodebuild -version |
63 |
| -
|
64 |
| - # Make sure Tokamak can be built on macOS so that Xcode autocomplete works. |
65 |
| - # Disable macOS builds until Monterey is available on GHA. |
66 |
| - # xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \ |
67 |
| - # CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ |
68 |
| - # xcpretty --color |
69 |
| -
|
70 |
| - cd "NativeDemo" |
71 |
| - xcodebuild -scheme iOS -destination 'generic/platform=iOS' \ |
72 |
| - CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ |
73 |
| - xcpretty --color |
74 |
| - cd .. |
75 |
| -
|
76 |
| - ./benchmark.sh |
77 |
| -
|
78 |
| - - name: Upload failed snapshots |
79 |
| - uses: actions/upload-artifact@v2 |
80 |
| - if: ${{ failure() }} |
81 |
| - with: |
82 |
| - name: Failed snapshots |
83 |
| - path: '*Tests' |
84 |
| - |
85 |
| - gtk_macos_build: |
86 |
| - runs-on: macos-11 |
87 |
| - |
88 |
| - steps: |
89 |
| - - uses: actions/checkout@v2 |
90 |
| - - name: Build the GTK renderer on macOS |
91 |
| - shell: bash |
92 |
| - run: | |
93 |
| - set -ex |
94 |
| - sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ |
95 |
| -
|
96 |
| - brew install gtk+3 |
97 |
| -
|
98 |
| - make build |
| 27 | + # Disabled until macos-12 is available on GitHub Actions, which is required for Xcode 13.3 |
| 28 | + # core_macos_build: |
| 29 | + # runs-on: macos-11 |
| 30 | + |
| 31 | + # steps: |
| 32 | + # - uses: actions/checkout@v2 |
| 33 | + # - name: Run the test suite on macOS, build the demo project for iOS |
| 34 | + # shell: bash |
| 35 | + # run: | |
| 36 | + # set -ex |
| 37 | + # sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ |
| 38 | + # # avoid building unrelated products for testing by specifying the test product explicitly |
| 39 | + # swift build --product TokamakPackageTests |
| 40 | + # `xcrun --find xctest` .build/debug/TokamakPackageTests.xctest || |
| 41 | + # (cp -r /var/folders/*/*/*/*Tests . ; exit 1) |
| 42 | + |
| 43 | + # rm -rf Sources/TokamakGTKCHelpers/*.c |
| 44 | + |
| 45 | + # xcodebuild -version |
| 46 | + |
| 47 | + # # Make sure Tokamak can be built on macOS so that Xcode autocomplete works. |
| 48 | + # # Disable macOS builds until Monterey is available on GHA. |
| 49 | + # # xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \ |
| 50 | + # # CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ |
| 51 | + # # xcpretty --color |
| 52 | + |
| 53 | + # cd "NativeDemo" |
| 54 | + # xcodebuild -scheme iOS -destination 'generic/platform=iOS' \ |
| 55 | + # CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \ |
| 56 | + # xcpretty --color |
| 57 | + # cd .. |
| 58 | + |
| 59 | + # ./benchmark.sh |
| 60 | + |
| 61 | + # - name: Upload failed snapshots |
| 62 | + # uses: actions/upload-artifact@v2 |
| 63 | + # if: ${{ failure() }} |
| 64 | + # with: |
| 65 | + # name: Failed snapshots |
| 66 | + # path: '*Tests' |
| 67 | + |
| 68 | + # gtk_macos_build: |
| 69 | + # runs-on: macos-11 |
| 70 | + |
| 71 | + # steps: |
| 72 | + # - uses: actions/checkout@v2 |
| 73 | + # - name: Build the GTK renderer on macOS |
| 74 | + # shell: bash |
| 75 | + # run: | |
| 76 | + # set -ex |
| 77 | + # sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/ |
| 78 | + |
| 79 | + # brew install gtk+3 |
| 80 | + |
| 81 | + # make build |
99 | 82 |
|
100 | 83 | gtk_ubuntu_18_04_build:
|
101 |
| - runs-on: ubuntu-18.04 |
| 84 | + runs-on: ubuntu-latest |
| 85 | + container: |
| 86 | + image: swiftlang/swift:nightly-bionic |
102 | 87 |
|
103 | 88 | steps:
|
104 | 89 | - uses: actions/checkout@v2
|
105 | 90 | - name: Build the GTK renderer on Ubuntu 18.04
|
106 | 91 | shell: bash
|
107 | 92 | run: |
|
108 | 93 | set -ex
|
109 |
| - sudo apt-get update |
110 |
| - sudo apt-get install libgtk+-3.0 gtk+-3.0 |
| 94 | + apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libgtk+-3.0 gtk+-3.0 |
111 | 95 |
|
112 | 96 | make build
|
113 | 97 |
|
114 | 98 | gtk_ubuntu_20_04_build:
|
115 |
| - runs-on: ubuntu-20.04 |
| 99 | + runs-on: ubuntu-latest |
| 100 | + container: |
| 101 | + image: swiftlang/swift:nightly-focal |
116 | 102 |
|
117 | 103 | steps:
|
118 | 104 | - uses: actions/checkout@v2
|
119 | 105 | - name: Build the GTK renderer on Ubuntu 20.04
|
120 | 106 | shell: bash
|
121 | 107 | run: |
|
122 | 108 | set -ex
|
123 |
| - sudo apt-get update |
124 |
| - sudo apt-get install libgtk+-3.0 gtk+-3.0 |
| 109 | + apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libgtk+-3.0 gtk+-3.0 |
125 | 110 |
|
126 | 111 | make build
|
0 commit comments