Skip to content

Commit

Permalink
Set-up Brew in Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Oct 24, 2023
1 parent 9109756 commit a1ff93f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
with:
compiler: ldc-1.33.0

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install dependencies
run: |
sudo dpkg --add-architecture i386
Expand Down Expand Up @@ -176,6 +180,8 @@ jobs:
mkdir $HOME/ldc-macos
curl -LO https://github.com/ldc-developers/ldc/releases/download/v1.33.0/ldc2-1.33.0-osx-x86_64.tar.xz
tar -xf ./ldc2-1.33.0-osx-x86_64.tar.xz -C $HOME
brew fetch --force --bottle-tag=arm64_monterey llvm
brew install $(brew --cache --bottle-tag=arm64_monterey llvm)
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libz-dev elfutils clang lld
Expand Down Expand Up @@ -207,6 +213,10 @@ jobs:
with:
compiler: ldc-1.33.0

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Set-up macOS cross-compilation
run: |
mkdir -p $HOME/.ldc/
Expand Down Expand Up @@ -238,6 +248,8 @@ jobs:
mkdir $HOME/ldc-macos
curl -LO https://github.com/ldc-developers/ldc/releases/download/v1.33.0/ldc2-1.33.0-osx-arm64.tar.xz
tar -xf ./ldc2-1.33.0-osx-arm64.tar.xz -C $HOME
brew fetch --force --bottle-tag=arm64_monterey llvm
brew install $(brew --cache --bottle-tag=arm64_monterey llvm)
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libz-dev elfutils clang lld
Expand Down
10 changes: 5 additions & 5 deletions windows/common/winapp.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module winapp;

// pragma(linkerDirective, "/SUBSYSTEM:WINDOWS");
// static if (__VERSION__ >= 2091)
// pragma(linkerDirective, "/ENTRY:wmainCRTStartup");
// else
// pragma(linkerDirective, "/ENTRY:mainCRTStartup");
pragma(linkerDirective, "/SUBSYSTEM:WINDOWS");
static if (__VERSION__ >= 2091)
pragma(linkerDirective, "/ENTRY:wmainCRTStartup");
else
pragma(linkerDirective, "/ENTRY:mainCRTStartup");

0 comments on commit a1ff93f

Please sign in to comment.