Skip to content

Commit 1bd4d53

Browse files
authored
Merge pull request #150 from weiznich/fix/ci
Fix/ci
2 parents 2a026c0 + e6a15be commit 1bd4d53

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/ci.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
rust: ["stable", "beta", "nightly"]
2424
backend: ["postgres", "mysql", "sqlite"]
25-
os: [ubuntu-latest, macos-latest, macos-14, windows-2019]
25+
os: [ubuntu-latest, macos-13, macos-14, windows-2019]
2626
runs-on: ${{ matrix.os }}
2727
steps:
2828
- name: Checkout sources
@@ -100,30 +100,31 @@ jobs:
100100
echo "DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
101101
102102
- name: Install postgres (MacOS)
103-
if: matrix.os == 'macos-latest' && matrix.backend == 'postgres'
103+
if: matrix.os == 'macos-13' && matrix.backend == 'postgres'
104104
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
107107
sleep 3
108108
createuser -s postgres
109109
echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
110110
111111
- name: Install postgres (MacOS M1)
112112
if: matrix.os == 'macos-14' && matrix.backend == 'postgres'
113113
run: |
114-
brew install postgresql
114+
brew install postgresql@14
115115
brew services start postgresql@14
116116
sleep 3
117117
createuser -s postgres
118118
echo "DATABASE_URL=postgres://postgres@localhost/" >> $GITHUB_ENV
119+
119120
- name: Install sqlite (MacOS)
120121
if: runner.os == 'macOS' && matrix.backend == 'sqlite'
121122
run: |
122123
brew install sqlite
123124
echo "DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
124125
125126
- name: Install mysql (MacOS)
126-
if: matrix.os == 'macos-latest' && matrix.backend == 'mysql'
127+
if: matrix.os == 'macos-13' && matrix.backend == 'mysql'
127128
run: |
128129
brew install [email protected]
129130
/usr/local/opt/[email protected]/bin/mysql_install_db

examples/sync-wrapper/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ table! {
1414
}
1515
}
1616

17+
#[allow(dead_code)]
1718
#[derive(Debug, Queryable, Selectable)]
1819
#[diesel(table_name = users)]
1920
struct User {

src/sync_connection_wrapper.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ where
134134
.boxed()
135135
}
136136

137-
fn execute_returning_count<'conn, 'query, T>(
138-
&'conn mut self,
139-
source: T,
140-
) -> Self::ExecuteFuture<'conn, 'query>
137+
fn execute_returning_count<'query, T>(&mut self, source: T) -> Self::ExecuteFuture<'_, 'query>
141138
where
142139
T: QueryFragment<Self::Backend> + QueryId,
143140
{

0 commit comments

Comments
 (0)