Skip to content

Commit 221611d

Browse files
authored
Merge pull request #226 from weiznich/fix/ci_04_25
Fix the ci
2 parents 1c36b65 + a311c70 commit 221611d

File tree

1 file changed

+28
-36
lines changed

1 file changed

+28
-36
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,29 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
rust: ["stable", "beta", "nightly"]
25+
rust: ["stable"]
2626
backend: ["postgres", "mysql", "sqlite"]
27-
os: [ubuntu-latest, macos-13, macos-15, windows-2019]
27+
os:
28+
[ubuntu-latest, macos-13, macos-15, windows-latest, ubuntu-22.04-arm]
29+
include:
30+
- rust: "beta"
31+
backend: "postgres"
32+
os: "ubuntu-latest"
33+
- rust: "beta"
34+
backend: "sqlite"
35+
os: "ubuntu-latest"
36+
- rust: "beta"
37+
backend: "mysql"
38+
os: "ubuntu-latest"
39+
- rust: "nightly"
40+
backend: "postgres"
41+
os: "ubuntu-latest"
42+
- rust: "nightly"
43+
backend: "sqlite"
44+
os: "ubuntu-latest"
45+
- rust: "nightly"
46+
backend: "mysql"
47+
os: "ubuntu-latest"
2848
runs-on: ${{ matrix.os }}
2949
steps:
3050
- name: Checkout sources
@@ -43,7 +63,7 @@ jobs:
4363
4464
- name: Set environment variables
4565
shell: bash
46-
if: matrix.backend == 'postgres' && matrix.os == 'windows-2019'
66+
if: matrix.backend == 'postgres' && matrix.os == 'windows-latest'
4767
run: |
4868
echo "AWS_LC_SYS_NO_ASM=1"
4969
@@ -55,7 +75,7 @@ jobs:
5575
echo "RUSTDOCFLAGS=-D warnings" >> $GITHUB_ENV
5676
5777
- uses: ilammy/setup-nasm@v1
58-
if: matrix.backend == 'postgres' && matrix.os == 'windows-2019'
78+
if: matrix.backend == 'postgres' && matrix.os == 'windows-latest'
5979

6080
- name: Install postgres (Linux)
6181
if: runner.os == 'Linux' && matrix.backend == 'postgres'
@@ -78,37 +98,8 @@ jobs:
7898
- name: Install sqlite (Linux)
7999
if: runner.os == 'Linux' && matrix.backend == 'sqlite'
80100
run: |
81-
curl -fsS --retry 3 -o sqlite-autoconf-3400100.tar.gz https://www.sqlite.org/2022/sqlite-autoconf-3400100.tar.gz
82-
tar zxf sqlite-autoconf-3400100.tar.gz
83-
cd sqlite-autoconf-3400100
84-
CFLAGS="$CFLAGS -O2 -fno-strict-aliasing \
85-
-DSQLITE_DEFAULT_FOREIGN_KEYS=1 \
86-
-DSQLITE_SECURE_DELETE \
87-
-DSQLITE_ENABLE_COLUMN_METADATA \
88-
-DSQLITE_ENABLE_FTS3_PARENTHESIS \
89-
-DSQLITE_ENABLE_RTREE=1 \
90-
-DSQLITE_SOUNDEX=1 \
91-
-DSQLITE_ENABLE_UNLOCK_NOTIFY \
92-
-DSQLITE_OMIT_LOOKASIDE=1 \
93-
-DSQLITE_ENABLE_DBSTAT_VTAB \
94-
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \
95-
-DSQLITE_ENABLE_LOAD_EXTENSION \
96-
-DSQLITE_ENABLE_JSON1 \
97-
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS \
98-
-DSQLITE_THREADSAFE=1 \
99-
-DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
100-
-DSQLITE_MAX_SCHEMA_RETRY=25 \
101-
-DSQLITE_ENABLE_PREUPDATE_HOOK \
102-
-DSQLITE_ENABLE_SESSION \
103-
-DSQLITE_ENABLE_STMTVTAB \
104-
-DSQLITE_MAX_VARIABLE_NUMBER=250000" \
105-
./configure --prefix=/usr \
106-
--enable-threadsafe \
107-
--enable-dynamic-extensions \
108-
--libdir=/usr/lib/x86_64-linux-gnu \
109-
--libexecdir=/usr/lib/x86_64-linux-gnu/sqlite3
110-
sudo make
111-
sudo make install
101+
sudo apt-get update
102+
sudo apt-get install libsqlite3-dev
112103
echo "DATABASE_URL=/tmp/test.db" >> $GITHUB_ENV
113104
114105
- name: Install postgres (MacOS)
@@ -184,8 +175,9 @@ jobs:
184175
run: |
185176
choco install sqlite
186177
cd /D C:\ProgramData\chocolatey\lib\SQLite\tools
187-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
178+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
188179
lib /machine:x64 /def:sqlite3.def /out:sqlite3.lib
180+
189181
- name: Set variables for sqlite (Windows)
190182
if: runner.os == 'Windows' && matrix.backend == 'sqlite'
191183
shell: bash

0 commit comments

Comments
 (0)