|
15 | 15 | include:
|
16 | 16 | - swift-version: 5.8.0
|
17 | 17 | carton-version: 0.19.0
|
| 18 | + swift-format-version: 508.0.1 |
| 19 | + swift-lint-version: 0.52.2 |
18 | 20 |
|
19 | 21 | steps:
|
20 | 22 | - name: Checkout the repo
|
|
25 | 27 | export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
|
26 | 28 | sudo apt-get -q update
|
27 | 29 | sudo apt-get -q install -y libedit2 libgcc-9-dev libpython2.7 libsqlite3-0 libstdc++-9-dev \
|
28 |
| - libxml2 libz3-dev zlib1g-dev build-essential libncurses5 libxkbcommon0 curl unzip |
| 30 | + libxml2 libz3-dev zlib1g-dev build-essential libncurses5 libxkbcommon0 curl unzip libcurl4-openssl-dev libxml2-dev |
29 | 31 |
|
30 | 32 | - name: Install Binaryen tools
|
31 | 33 | run: |
|
|
50 | 52 | tar xf swift-toolcahin.tar.gz
|
51 | 53 | mv swift-wasm-* wasm-${{ matrix.swift-version }}-RELEASE
|
52 | 54 |
|
| 55 | + - name: Build Swift-format version ${{ matrix.swift-format-version }} |
| 56 | + env: |
| 57 | + GH_TOKEN: ${{ github.token }} |
| 58 | + run: | |
| 59 | + gh repo clone apple/swift-format -- --branch ${{ matrix.swift-format-version }} --single-branch |
| 60 | + cd swift-format |
| 61 | + swift build -c release |
| 62 | + .build/release/swift-format --version |
| 63 | +
|
| 64 | + - name: Build SwiftLint version ${{ matrix.swift-lint-version }} |
| 65 | + env: |
| 66 | + GH_TOKEN: ${{ github.token }} |
| 67 | + run: | |
| 68 | + gh repo clone realm/SwiftLint -- --branch ${{ matrix.swift-lint-version }} --single-branch |
| 69 | + cd SwiftLint |
| 70 | + swift build -c release -Xswiftc -static-stdlib --product swiftlint |
| 71 | + .build/release/swiftlint --version |
| 72 | +
|
53 | 73 | - name: Create WASM build tools bundle
|
54 | 74 | id: create-build
|
55 | 75 | run: |
|
|
58 | 78 | mkdir -p $wasm_tools_dir
|
59 | 79 | mv carton/.build/release/carton $wasm_tools_dir/carton
|
60 | 80 | mv binaryen/bin/wasm-opt $wasm_tools_dir/wasm-opt
|
| 81 | + mv swift-format/.build/release/swift-format $wasm_tools_dir/swift-format |
| 82 | + mv SwiftLint/.build/release/swiftlint $wasm_tools_dir/ |
61 | 83 | mv wasm-${{ matrix.swift-version }}-RELEASE $wasm_tools_dir/
|
62 |
| - tar cf - $wasm_tools_dir | lz4 > $wasm_tools_dir.tar.lz4 |
| 84 | + tar cf - $wasm_tools_dir | lz4 -12 > $wasm_tools_dir.tar.lz4 |
63 | 85 |
|
64 | 86 | - name: Compute release version number
|
65 | 87 | id: compute-version
|
|
0 commit comments