Skip to content

Commit

Permalink
CI: Adjust CrateDB version in versions.cfg only on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Nov 3, 2020
1 parent a6e05cd commit c99d01d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ jobs:
# replace SQLAlchemy version
sed -ir 's/SQLAlchemy.*/SQLAlchemy = ${{ matrix.sqla-version }}/g' versions.cfg
# replace CrateDB version
if [ ${{ matrix.crate-version }} = "nightly" ]; then
sed -ir 's/releases/releases\/nightly/g' base.cfg
sed -ir 's/crate_server.*/crate_server = latest/g' versions.cfg
else
sed -ir 's/crate-/crate_/g' base.cfg
sed -ir 's/crate_server.*/crate_server = ${{ matrix.crate-version }}/g' versions.cfg
# Adjust CrateDB version, only on Linux.
if [ ${{ matrix.os }} = "ubuntu-latest" ]; then
if [ ${{ matrix.crate-version }} = "nightly" ]; then
sed -ir 's/releases/releases\/nightly/g' base.cfg
sed -ir 's/crate_server.*/crate_server = latest/g' versions.cfg
else
sed -ir 's/crate-/crate_/g' base.cfg
sed -ir 's/crate_server.*/crate_server = ${{ matrix.crate-version }}/g' versions.cfg
fi
fi
bin/buildout -n -c base.cfg
Expand Down

0 comments on commit c99d01d

Please sign in to comment.