|
4 | 4 | name: "tests" |
5 | 5 |
|
6 | 6 | jobs: |
| 7 | + libs_linux: |
| 8 | + name: Building Linux libraries |
| 9 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v4 |
| 13 | + with: |
| 14 | + submodules: true |
| 15 | + - name: Build Android |
| 16 | + uses: ./.github/actions/linux |
| 17 | + |
| 18 | + libs_macos: |
| 19 | + name: Building macOS libraries |
| 20 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + with: |
| 25 | + submodules: true |
| 26 | + - name: Build macOS |
| 27 | + uses: ./.github/actions/macos |
| 28 | + |
| 29 | + libs_windows: |
| 30 | + name: Building Windows libraries |
| 31 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 32 | + runs-on: ubuntu-latest |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + with: |
| 36 | + submodules: true |
| 37 | + - name: Build Windows |
| 38 | + uses: ./.github/actions/windows |
| 39 | + |
| 40 | + libs_android: |
| 41 | + name: Building Android libraries |
| 42 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 43 | + runs-on: ubuntu-latest |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + with: |
| 47 | + submodules: true |
| 48 | + - name: Build Android |
| 49 | + uses: ./.github/actions/android |
| 50 | + with: |
| 51 | + sign-publication: '0' |
| 52 | + |
| 53 | + libs_wasm: |
| 54 | + name: Basic WASM build |
| 55 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 56 | + runs-on: ubuntu-latest |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v4 |
| 59 | + with: |
| 60 | + submodules: true |
| 61 | + |
| 62 | + - name: Build wasm |
| 63 | + uses: ./.github/actions/wasm |
| 64 | + |
| 65 | + libs_xcframework: |
| 66 | + name: Build XCFramework |
| 67 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 68 | + runs-on: macos-latest |
| 69 | + steps: |
| 70 | + - uses: actions/checkout@v4 |
| 71 | + with: |
| 72 | + submodules: true |
| 73 | + - name: Build XCFramework |
| 74 | + uses: ./.github/actions/xcframework |
| 75 | + |
7 | 76 | build: |
8 | 77 | name: Testing on ${{ matrix.os }} |
9 | 78 | if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
@@ -82,3 +151,27 @@ jobs: |
82 | 151 | run: | |
83 | 152 | CORE_TEST_SQLITE=.dart_tool/sqlite3/latest/libsqlite3.dylib dart test -P skip_slow |
84 | 153 | CORE_TEST_SQLITE=.dart_tool/sqlite3/minimum/libsqlite3.dylib dart test -P skip_slow |
| 154 | +
|
| 155 | + valgrind: |
| 156 | + name: Testing with Valgrind on ${{ matrix.os }} |
| 157 | + runs-on: ${{ matrix.os }} |
| 158 | + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) |
| 159 | + strategy: |
| 160 | + matrix: |
| 161 | + include: |
| 162 | + - os: ubuntu-latest |
| 163 | + steps: |
| 164 | + - uses: actions/checkout@v4 |
| 165 | + with: |
| 166 | + submodules: true |
| 167 | + |
| 168 | + - name: Install valgrind |
| 169 | + run: sudo apt update && sudo apt install -y valgrind |
| 170 | + |
| 171 | + - name: Install Cargo Valgrind |
| 172 | + run: | |
| 173 | + cargo install cargo-valgrind |
| 174 | +
|
| 175 | + - name: Test Core |
| 176 | + run: | |
| 177 | + cargo valgrind test -p powersync_core --features loadable_extension |
0 commit comments