|
22 | 22 | matrix:
|
23 | 23 | rust: ["stable", "beta", "nightly"]
|
24 | 24 | backend: ["postgres", "mysql", "sqlite"]
|
25 |
| - os: [ubuntu-latest, macos-latest, macos-14, windows-2019] |
| 25 | + os: [ubuntu-latest, macos-13, macos-14, windows-2019] |
26 | 26 | runs-on: ${{ matrix.os }}
|
27 | 27 | steps:
|
28 | 28 | - name: Checkout sources
|
@@ -100,30 +100,31 @@ jobs:
|
100 | 100 | echo "DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
|
101 | 101 |
|
102 | 102 | - name: Install postgres (MacOS)
|
103 |
| - if: matrix.os == 'macos-latest' && matrix.backend == 'postgres' |
| 103 | + if: matrix.os == 'macos-13' && matrix.backend == 'postgres' |
104 | 104 | run: |
|
105 |
| - initdb -D /usr/local/var/postgres |
106 |
| - pg_ctl -D /usr/local/var/postgres start |
| 105 | + brew install postgresql@14 |
| 106 | + brew services start postgresql@14 |
107 | 107 | sleep 3
|
108 | 108 | createuser -s postgres
|
109 | 109 | echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
|
110 | 110 |
|
111 | 111 | - name: Install postgres (MacOS M1)
|
112 | 112 | if: matrix.os == 'macos-14' && matrix.backend == 'postgres'
|
113 | 113 | run: |
|
114 |
| - brew install postgresql |
| 114 | + brew install postgresql@14 |
115 | 115 | brew services start postgresql@14
|
116 | 116 | sleep 3
|
117 | 117 | createuser -s postgres
|
118 | 118 | echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
|
| 119 | +
|
119 | 120 | - name: Install sqlite (MacOS)
|
120 | 121 | if: runner.os == 'macOS' && matrix.backend == 'sqlite'
|
121 | 122 | run: |
|
122 | 123 | brew install sqlite
|
123 | 124 | echo "DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
|
124 | 125 |
|
125 | 126 | - name: Install mysql (MacOS)
|
126 |
| - if: matrix.os == 'macos-latest' && matrix.backend == 'mysql' |
| 127 | + if: matrix.os == 'macos-13' && matrix.backend == 'mysql' |
127 | 128 | run: |
|
128 | 129 |
|
129 | 130 | /usr/local/opt/[email protected]/bin/mysql_install_db
|
|
0 commit comments