Skip to content

Commit

Permalink
feat: update sqlx version to 0.6 (#76)
Browse files Browse the repository at this point in the history
* feat: update sqlx version to 0.6

* feat: update postgresql

* upgrading postgres support

* removing old postgres

* removed ubuntu support to check error in windows

* removed ubuntu support

* changed the split-debuginfo type to packed which is supported on windows

* feat: add ubuntu, resolve windows split-debuginfo error
  • Loading branch information
SiddheshKanawade authored Sep 6, 2022
1 parent 13b1f67 commit 7eb3f44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y libpq-dev postgresql libmysqlclient-dev mysql-client libsqlite3-dev sqlite3
echo "host all all 127.0.0.1/32 md5" > sudo tee -a /etc/postgresql/10/main/pg_hba.conf
sudo service postgresql restart && sleep 3
Expand All @@ -45,8 +46,10 @@ jobs:
if: matrix.os == 'macOS-latest'
run: |
brew update
brew upgrade
brew services start postgresql
brew install [email protected] sqlite
pg_ctl -D /usr/local/var/postgres start
# pg_ctl -D /usr/local/var/postgres start
sleep 3
createuser casbin_rs
createdb casbin
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme= "README.md"

[dependencies]
casbin = { version = "2.0.8", default-features = false }
sqlx = { version = "0.5.6", default-features = false, features = [ "macros" ] }
sqlx = { version = "0.6", default-features = false, features = [ "macros" ] }
async-trait = "0.1.51"
dotenv = { version = "0.15.0", default-features = false }
tokio = { version = "1.10.0", default-features = false, optional = true }
Expand Down Expand Up @@ -50,4 +50,4 @@ lto = true
opt-level = 3

[profile.dev]
split-debuginfo = "unpacked"
split-debuginfo = "packed"

0 comments on commit 7eb3f44

Please sign in to comment.