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