Skip to content

Commit

Permalink
fixup! Try
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Jun 30, 2023
1 parent 1f7750a commit b9b3285
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@

set -exo pipefail

d_version="$(echo "$DSTEP_COMPILER" | sed 's/-latest//')"
source $(curl --retry 3 -fsS https://dlang.org/install.sh | bash -s "$d_version" -a)
./configure --llvm-path "llvm-$DSTEP_LLVM_VERSION" --statically-link-clang
dub test --verror
d_compiler() {
echo "$DSTEP_COMPILER" | \
sed 's/-latest//' | \
sed 's/dmd-master/dmd-nightly /' | \
sed 's/ldc-master/ldc-latest-ci /'
}

run() {
source $(curl --retry 3 -fsS https://dlang.org/install.sh | bash -s "$(d_compiler)" -a)
./configure --llvm-path "llvm-$DSTEP_LLVM_VERSION" --statically-link-clang
dub test --verror

}

run

0 comments on commit b9b3285

Please sign in to comment.