|
14 | 14 |
|
15 | 15 | complete: |
16 | 16 | if: always() |
17 | | - needs: [fmt, cargo-deny, rust-check-git-rev-deps, build] |
| 17 | + needs: [fmt, cargo-deny, rust-check-git-rev-deps, build-linux, build-mac] |
18 | 18 | runs-on: |
19 | 19 | - namespace-profile-jammy-1-stellar-core |
20 | 20 | - nscloud-cache-exp-do-not-commit |
|
69 | 69 | submodules: recursive |
70 | 70 | - uses: stellar/actions/rust-check-git-rev-deps@main |
71 | 71 |
|
72 | | - build: |
| 72 | + build-linux: |
73 | 73 | runs-on: |
74 | 74 | - namespace-profile-jammy-32-stellar-core;overrides.cache-tag=config-${{ matrix.toolchain }}-${{ matrix.protocol }} |
75 | 75 | strategy: |
@@ -120,3 +120,51 @@ jobs: |
120 | 120 | fi |
121 | 121 | echo Build with $CC and $CXX |
122 | 122 | ./ci-build.sh --use-temp-db --protocol ${{ matrix.protocol }} |
| 123 | +
|
| 124 | + build-mac: |
| 125 | + runs-on: |
| 126 | + - namespace-profile-macos-sequoia;overrides.cache-tag=config-macos-sequoia |
| 127 | + steps: |
| 128 | + |
| 129 | + - name: Checkout with Namespace Git mirrors cache |
| 130 | + uses: namespacelabs/nscloud-checkout-action@v7 |
| 131 | + with: |
| 132 | + fetch-depth: 1 |
| 133 | + submodules: recursive |
| 134 | + |
| 135 | + - name: Configure Namespace cache volume |
| 136 | + uses: namespacelabs/nscloud-cache-action@v1 |
| 137 | + with: |
| 138 | + path: | |
| 139 | + ~/.cargo |
| 140 | + build-clang-current |
| 141 | +
|
| 142 | + - name: install prerequisites and uninstall brew rust, add rustup |
| 143 | + run: | |
| 144 | + brew install libsodium libtool autoconf automake pkg-config libpq openssl parallel ccache bison gnu-sed perl coreutils |
| 145 | + brew uninstall rust rustup |
| 146 | + brew install rustup |
| 147 | +
|
| 148 | + - name: install rustup components |
| 149 | + run: | |
| 150 | + rustup-init -y |
| 151 | + rustup component add rustfmt rustc cargo clippy rust-src rust-std |
| 152 | +
|
| 153 | + - name: install cargo-cache |
| 154 | + run: | |
| 155 | + cargo install --locked cargo-cache --version 0.8.3 |
| 156 | +
|
| 157 | + - name: install cargo-sweep |
| 158 | + run: | |
| 159 | + cargo install --locked cargo-sweep --version 0.7.0 |
| 160 | +
|
| 161 | + - name: Build |
| 162 | + run: | |
| 163 | + export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix)/opt/libpq/lib/pkgconfig" |
| 164 | + export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix)/opt/openssl@3/lib/pkgconfig" |
| 165 | + export PATH="$(brew --prefix bison)/bin:$PATH" |
| 166 | + export CC='clang' |
| 167 | + export CXX='clang++' |
| 168 | + export CLANG_VERSION=none |
| 169 | + export SKIP_FORMAT_CHECK=1 |
| 170 | + ./ci-build.sh --disable-postgres --protocol current |
0 commit comments