|
11 | 11 | - swiftwasm-release/5.3
|
12 | 12 |
|
13 | 13 | jobs:
|
14 |
| - linux_build: |
| 14 | + ubuntu_18.04_build: |
15 | 15 | timeout-minutes: 0
|
16 | 16 | runs-on: ubuntu-18.04
|
17 | 17 |
|
@@ -48,14 +48,60 @@ jobs:
|
48 | 48 | - name: Upload Linux installable archive
|
49 | 49 | uses: actions/upload-artifact@v1
|
50 | 50 | with:
|
51 |
| - name: linux-installable |
| 51 | + name: ubuntu_18.04-installable |
52 | 52 | path: ../swift-wasm-DEVELOPMENT-SNAPSHOT-linux.tar.gz
|
53 | 53 | # - name: Pack test results
|
54 | 54 | # run: tar cJf swift-test-results.tar.gz ../build/*/swift-linux-x86_64/swift-test-results
|
55 | 55 | # - name: Upload test results
|
56 | 56 | # uses: actions/upload-artifact@v1
|
57 | 57 | # with:
|
58 | 58 | # name: linux-test-results
|
| 59 | +# path: ./swift-test-results.tar.gz |
| 60 | + |
| 61 | + ubuntu_20.04_build: |
| 62 | + timeout-minutes: 0 |
| 63 | + runs-on: ubuntu-20.04 |
| 64 | + |
| 65 | + steps: |
| 66 | + - name: Free disk space |
| 67 | + run: | |
| 68 | + df -h |
| 69 | + sudo swapoff -a |
| 70 | + sudo rm -f /swapfile |
| 71 | + sudo rm -rf /opt/hostedtoolcache |
| 72 | + sudo rm -rf /usr/share/dotnet |
| 73 | + sudo apt clean |
| 74 | + docker rmi $(docker image ls -aq) |
| 75 | + df -h |
| 76 | + - uses: actions/checkout@v1 |
| 77 | + with: |
| 78 | + path: swift |
| 79 | + - name: Prepare sccache timestamp |
| 80 | + id: cache_timestamp |
| 81 | + shell: cmake -P {0} |
| 82 | + run: | |
| 83 | + string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) |
| 84 | + message("::set-output name=timestamp::${current_date}") |
| 85 | + - uses: actions/cache@v1 |
| 86 | + with: |
| 87 | + path: ../build-cache |
| 88 | + key: ${{ runner.os }}-sccache-v10-${{ steps.cache_timestamp.outputs.timestamp }} |
| 89 | + restore-keys: | |
| 90 | + ${{ runner.os }}-sccache-v10- |
| 91 | + - name: Build Linux installable archive |
| 92 | + run: | |
| 93 | + ./utils/webassembly/ci.sh |
| 94 | +# - name: Upload Linux installable archive |
| 95 | +# uses: actions/upload-artifact@v1 |
| 96 | +# with: |
| 97 | +# name: linux-installable |
| 98 | +# path: ../swift-wasm-DEVELOPMENT-SNAPSHOT-linux.tar.gz |
| 99 | +# - name: Pack test results |
| 100 | +# run: tar cJf swift-test-results.tar.gz ../build/*/swift-linux-x86_64/swift-test-results |
| 101 | +# - name: Upload test results |
| 102 | +# uses: actions/upload-artifact@v1 |
| 103 | +# with: |
| 104 | +# name: linux-test-results |
59 | 105 | # path: ./swift-test-results.tar.gz
|
60 | 106 |
|
61 | 107 | macos_build:
|
@@ -129,10 +175,11 @@ jobs:
|
129 | 175 | with:
|
130 | 176 | name: macos-hello.wasm
|
131 | 177 | path: hello.wasm
|
132 |
| - linux_smoke_test: |
| 178 | + |
| 179 | + ubuntu_18.04_smoke_test: |
133 | 180 | name: Run smoke tests on Linux
|
134 | 181 | runs-on: ubuntu-18.04
|
135 |
| - needs: linux_build |
| 182 | + needs: ubuntu_18.04_build |
136 | 183 | steps:
|
137 | 184 | - name: Download installable Linux archive
|
138 | 185 | uses: actions/download-artifact@v1
|
|
0 commit comments