Skip to content

Commit 112eb16

Browse files
committed
[GHA]
1 parent 782edf1 commit 112eb16

File tree

2 files changed

+4
-29
lines changed

2 files changed

+4
-29
lines changed

.github/actions/1-setup/action.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -102,33 +102,8 @@ runs:
102102
sudo ln -sf "$(dirname "$PWD")/clang/bin/ld.lld" /usr/bin/ld
103103
ld --version
104104
105-
- name: Install ninja # into ../ninja
106-
shell: bash
107-
run: |
108-
set -eux
109-
cd ..
110-
111-
os=linux
112-
if [[ '${{ runner.os }}' == Windows ]]; then
113-
os=win
114-
elif [[ '${{ runner.os }}' == macOS ]]; then
115-
os=mac
116-
fi
117-
118-
curl -fL --retry 3 --max-time 60 -O https://github.com/symmetryinvestments/ninja/releases/download/v1.11.1-sym1/ninja-$os.zip
119-
mkdir ninja
120-
unzip ninja-$os.zip -d ninja
121-
rm ninja-$os.zip
122-
123-
ninja/ninja --version
124-
125-
if [[ '${{ runner.os }}' == Windows ]]; then
126-
# HACK: copy to directory in PATH and hope it's early enough
127-
cp ninja/ninja.exe /c/vcpkg
128-
ninja --version
129-
else
130-
echo "PATH=$PWD/ninja:$PATH" >> $GITHUB_ENV
131-
fi
105+
- name: Install ninja
106+
uses: symmetryinvestments/gha-setup-ninja@v1
132107

133108
- name: Install D host compiler
134109
uses: dlang-community/setup-dlang@v1

.github/workflows/supported_llvm_versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
submodules: true
5959
fetch-depth: 50
6060
- name: Install ninja
61-
uses: seanmiddleditch/gha-setup-ninja@v3
61+
uses: symmetryinvestments/gha-setup-ninja@v1
6262
- name: Install D host compiler
6363
uses: dlang-community/setup-dlang@v1
6464
with:
@@ -122,7 +122,7 @@ jobs:
122122
-DLLVM_ROOT_DIR="$PWD/llvm" \
123123
-DLDC_LINK_MANUALLY=OFF \
124124
${{ matrix.cmake_flags }}
125-
ninja all ldc2-unittest all-test-runners
125+
ninja obj/ldc2.o all ldc2-unittest all-test-runners
126126
bin/ldc2 --version
127127
128128
- name: Run LDC D unittests

0 commit comments

Comments
 (0)