Skip to content

Commit

Permalink
Set a wider range of acceptable base64 versions
Browse files Browse the repository at this point in the history
This works without change for base64 version 21 or 22, so allow users
to specify either
  • Loading branch information
quodlibetor committed Jun 20, 2024
1 parent 65ddc7a commit 335a0e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
strategy:
matrix:
rust-version: [stable, beta, nightly]
include:
- rust-version: stable
base64-version: ["0.21", ""]
- rust-version: beta
base64-version: [""]
- rust-version: nightly
base64-version: [""]

services:
postgres:
Expand All @@ -42,7 +49,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: cargo build --features diesel-uuid,serde
run: |
if [ -n "${{ matrix.base64-version }}" ] ; then
cargo remove base64
cargo add base64@${{ matrix.base64-version }}
fi
cargo build --features diesel-uuid,serde
- name: Test
run: cargo nextest run --features diesel-uuid,serde
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2021"
travis-ci = { repository = "quodlibetor/uuid-b64", branch = "master" }

[dependencies]
base64 = "0.22.0"
base64 = ">=0.21.0,<=0.22"
diesel-derive-newtype = { version = "2.1.0", optional = true }
diesel = { version = "2.2.0", features = ["postgres", "uuid"], optional = true }
error-chain = "0.12.0"
Expand Down

0 comments on commit 335a0e8

Please sign in to comment.