Skip to content

Commit

Permalink
Specify the minimum supported D version in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed May 17, 2024
1 parent ccbe04c commit 63afbef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build-qt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
compiler: ldc-1.33.0

- name: Set-up macOS cross-compilation
run: |
Expand Down Expand Up @@ -107,13 +107,13 @@ jobs:
mkdir $HOME/ldc-macos
curl -LO https://github.com/ldc-developers/ldc/releases/download/v$LDC_VERSION/ldc2-$LDC_VERSION-osx-x86_64.tar.xz
tar -xf ./ldc2-$LDC_VERSION-osx-x86_64.tar.xz -C $HOME
brew fetch --force --bottle-tag=monterey llvm
brew install --ignore-dependencies $(brew --cache --bottle-tag=monterey llvm)
cp /home/linuxbrew/.linuxbrew/Cellar/llvm/*/lib/c++/* $HOME/ldc2-$LDC_VERSION-osx-x86_64/lib
rm -rf /home/linuxbrew/.linuxbrew
- name: Set-up Qt for cross-compilation
run:
brew fetch --force --bottle-tag=monterey llvm
brew install --ignore-dependencies $(brew --cache --bottle-tag=monterey llvm)
cp /home/linuxbrew/.linuxbrew/Cellar/llvm/*/lib/c++/* $HOME/ldc2-*-osx-x86_64/lib
rm -rf /home/linuxbrew/.linuxbrew
cp -r $Qt5_DIR/lib/* $HOME/ldc2-*-osx-x86_64/lib

- name: Install dependencies
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:

- uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
compiler: ldc-1.33.0

- name: Set up Homebrew
id: set-up-homebrew
Expand Down Expand Up @@ -209,13 +209,13 @@ jobs:
mkdir $HOME/ldc-macos
curl -LO https://github.com/ldc-developers/ldc/releases/download/v$LDC_VERSION/ldc2-$LDC_VERSION-osx-arm64.tar.xz
tar -xf ./ldc2-$LDC_VERSION-osx-arm64.tar.xz -C $HOME
brew fetch --force --bottle-tag=arm64_monterey llvm
brew install --ignore-dependencies $(brew --cache --bottle-tag=arm64_monterey llvm)
cp /home/linuxbrew/.linuxbrew/Cellar/llvm/*/lib/c++/* $HOME/ldc2-$LDC_VERSION-osx-arm64/lib
rm -rf /home/linuxbrew/.linuxbrew
- name: Set-up Qt for cross-compilation
run:
brew fetch --force --bottle-tag=arm64_monterey llvm
brew install --ignore-dependencies $(brew --cache --bottle-tag=arm64_monterey llvm)
cp /home/linuxbrew/.linuxbrew/Cellar/llvm/*/lib/c++/* $HOME/ldc2-*-osx-arm64/lib
rm -rf /home/linuxbrew/.linuxbrew
cp -r $Qt5_DIR/lib/* $HOME/ldc2-*-osx-arm64/lib

- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ see [this link](https://slproweb.com/products/Win32OpenSSL.html))
### Other distributions:
Get a recent version `ldc2` or `dmd` installed (an installation script is available on
[dlang.org](https://dlang.org/)). GNU D compiler won't compile that code (the cryptography
libraries uses SIMD instructions that it can't compile yet).
[dlang.org](https://dlang.org/)). Supported version range is D 2.103.1 and above (which corresponds to
LDC 1.33.0). GNU D compiler won't compile that code (the cryptography library makes use
of SIMD instructions that cannot be compiled by GDC yet).

## How it works?

Expand Down

0 comments on commit 63afbef

Please sign in to comment.