Skip to content

Commit 0acab85

Browse files
committed
BUG: Escape GitHub Actions template markup for cookiecutter
1 parent 6b7c9b9 commit 0acab85

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

{{cookiecutter.project_name}}/.github/workflows/build-test-package.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push,pull_request]
44

55
jobs:
66
build-test-cxx:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: ${{ "{{" }} matrix.os {{ "}}" }}
88
strategy:
99
max-parallel: 3
1010
matrix:
@@ -44,15 +44,15 @@ jobs:
4444
cd ..
4545
git clone https://github.com/InsightSoftwareConsortium/ITK.git
4646
cd ITK
47-
git checkout ${{ matrix.itk-git-tag }}
47+
git checkout ${{ "{{" }} matrix.itk-git-tag {{ "}}" }}
4848
4949
- name: Build ITK
5050
if: matrix.os != 'windows-2019'
5151
run: |
5252
cd ..
5353
mkdir ITK-build
5454
cd ITK-build
55-
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ matrix.c-compiler }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake-build-type }} -DBUILD_TESTING:BOOL=OFF -GNinja ../ITK
55+
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ "{{" }} matrix.c-compiler {{ "}}" }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ "{{" }} matrix.cxx-compiler {{ "}}" }}" -DCMAKE_BUILD_TYPE:STRING=${{ "{{" }} matrix.cmake-build-type {{ "}}" }} -DBUILD_TESTING:BOOL=OFF -GNinja ../ITK
5656
ninja
5757
5858
- name: Build ITK
@@ -62,7 +62,7 @@ jobs:
6262
mkdir ITK-build
6363
cd ITK-build
6464
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
65-
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ matrix.c-compiler }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.cmake-build-type }} -DBUILD_TESTING:BOOL=OFF -GNinja ../ITK
65+
cmake -DCMAKE_C_COMPILER:FILEPATH="${{ "{{" }} matrix.c-compiler {{ "}}" }}" -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_CXX_COMPILER="${{ "{{" }} matrix.cxx-compiler {{ "}}" }}" -DCMAKE_BUILD_TYPE:STRING=${{ "{{" }} matrix.cmake-build-type {{ "}}" }} -DBUILD_TESTING:BOOL=OFF -GNinja ../ITK
6666
ninja
6767
shell: cmd
6868

@@ -73,7 +73,7 @@ jobs:
7373
- name: Configure CTest script
7474
shell: bash
7575
run: |
76-
operating_system="${{ matrix.os }}"
76+
operating_system="${{ "{{" }} matrix.os {{ "}}" }}"
7777
cat > dashboard.cmake << EOF
7878
set(CTEST_SITE "GitHubActions")
7979
file(TO_CMAKE_PATH "${PWD}/.." CTEST_DASHBOARD_ROOT)
@@ -98,8 +98,8 @@ jobs:
9898
"ld: warning: text-based stub file"
9999
)
100100
set(dashboard_no_clean 1)
101-
set(ENV{CC} ${{ matrix.c-compiler }})
102-
set(ENV{CXX} ${{ matrix.cxx-compiler }})
101+
set(ENV{CC} ${{ "{{" }} matrix.c-compiler {{ "}}" }})
102+
set(ENV{CXX} ${{ "{{" }} matrix.cxx-compiler {{ "}}" }})
103103
set(dashboard_cache "
104104
ITK_DIR:PATH=\${CTEST_DASHBOARD_ROOT}/ITK-build
105105
BUILD_TESTING:BOOL=ON
@@ -151,13 +151,13 @@ jobs:
151151
152152
- name: 'Build 🐍 Python 📦 package'
153153
run: |
154-
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
155-
./dockcross-manylinux-download-cache-and-build-module-wheels.sh cp${{ matrix.python-version }}
154+
export ITK_PACKAGE_VERSION=${{ "{{" }} matrix.itk-python-git-tag {{ "}}" }}
155+
./dockcross-manylinux-download-cache-and-build-module-wheels.sh cp${{ "{{" }} matrix.python-version {{ "}}" }}
156156
157157
- name: Publish Python package as GitHub Artifact
158158
uses: actions/upload-artifact@v1
159159
with:
160-
name: LinuxWheel${{ matrix.python-version }}
160+
name: LinuxWheel${{ "{{" }} matrix.python-version {{ "}}" }}
161161
path: dist
162162

163163
build-macos-python-packages:
@@ -178,7 +178,7 @@ jobs:
178178
179179
- name: 'Build 🐍 Python 📦 package'
180180
run: |
181-
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
181+
export ITK_PACKAGE_VERSION=${{ "{{" }} matrix.itk-python-git-tag {{ "}}" }}
182182
export MACOSX_DEPLOYMENT_TARGET=10.9
183183
./macpython-download-cache-and-build-module-wheels.sh
184184
@@ -203,13 +203,13 @@ jobs:
203203
- name: 'Install Python'
204204
run: |
205205
$pythonArch = "64"
206-
$pythonVersion = "3.${{ matrix.python-version-minor }}"
206+
$pythonVersion = "3.${{ "{{" }} matrix.python-version-minor {{ "}}" }}"
207207
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
208208
209209
- name: 'Fetch build dependencies'
210210
shell: bash
211211
run: |
212-
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ matrix.itk-python-git-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
212+
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ "{{" }} matrix.itk-python-git-tag {{ "}}" }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
213213
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
214214
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
215215
7z x doxygen-1.8.11.windows.bin.zip -o/c/P/doxygen -aoa -r
@@ -223,12 +223,12 @@ jobs:
223223
set PATH="C:\P\grep;%PATH%"
224224
set CC=cl.exe
225225
set CXX=cl.exe
226-
C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64"
226+
C:\Python3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64"
227227
228228
- name: Publish Python package as GitHub Artifact
229229
uses: actions/upload-artifact@v1
230230
with:
231-
name: WindowWheel3.${{ matrix.python-version-minor }}
231+
name: WindowWheel3.${{ "{{" }} matrix.python-version-minor {{ "}}" }}
232232
path: dist
233233

234234
publish-python-packages-to-pypi:
@@ -257,4 +257,4 @@ jobs:
257257
uses: pypa/gh-action-pypi-publish@master
258258
with:
259259
user: __token__
260-
password: ${{ secrets.pypi_password }}
260+
password: ${{ "{{" }} secrets.pypi_password {{ "}}" }}

0 commit comments

Comments
 (0)