Improve organization of CI workflow scripts and pip requirements (#45037)
This commit is contained in:
8
.github/workflows/bin/bootstrap-test.sh
vendored
Executable file
8
.github/workflows/bin/bootstrap-test.sh
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
source share/spack/setup-env.sh
|
||||
$PYTHON bin/spack bootstrap disable github-actions-v0.4
|
||||
$PYTHON bin/spack bootstrap disable spack-install
|
||||
$PYTHON bin/spack $SPACK_FLAGS solve zlib
|
||||
tree $BOOTSTRAP/store
|
||||
exit 0
|
||||
7
.github/workflows/bin/execute_installer.ps1
vendored
Normal file
7
.github/workflows/bin/execute_installer.ps1
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
$ proc = Start-Process ${{ env.spack_installer }}\spack.exe "/install /quiet" -Passthru
|
||||
$handle = $proc.Handle # cache proc.Handle
|
||||
$proc.WaitForExit();
|
||||
|
||||
if ($proc.ExitCode -ne 0) {
|
||||
Write-Warning "$_ exited with status code $($proc.ExitCode)"
|
||||
}
|
||||
9
.github/workflows/bin/generate_spack_yaml_containerize.sh
vendored
Executable file
9
.github/workflows/bin/generate_spack_yaml_containerize.sh
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
(echo "spack:" \
|
||||
&& echo " specs: []" \
|
||||
&& echo " container:" \
|
||||
&& echo " format: docker" \
|
||||
&& echo " images:" \
|
||||
&& echo " os: \"${SPACK_YAML_OS}\"" \
|
||||
&& echo " spack:" \
|
||||
&& echo " ref: ${GITHUB_REF}") > spack.yaml
|
||||
10
.github/workflows/bin/setup_git.ps1
vendored
Normal file
10
.github/workflows/bin/setup_git.ps1
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# (c) 2022 Lawrence Livermore National Laboratory
|
||||
|
||||
git config --global user.email "spack@example.com"
|
||||
git config --global user.name "Test User"
|
||||
git config --global core.longpaths true
|
||||
|
||||
if ($(git branch --show-current) -ne "develop")
|
||||
{
|
||||
git branch develop origin/develop
|
||||
}
|
||||
8
.github/workflows/bin/setup_git.sh
vendored
Executable file
8
.github/workflows/bin/setup_git.sh
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
git config --global user.email "spack@example.com"
|
||||
git config --global user.name "Test User"
|
||||
|
||||
# create a local pr base branch
|
||||
if [[ -n $GITHUB_BASE_REF ]]; then
|
||||
git fetch origin "${GITHUB_BASE_REF}:${GITHUB_BASE_REF}"
|
||||
fi
|
||||
4
.github/workflows/bin/system_shortcut_check.ps1
vendored
Normal file
4
.github/workflows/bin/system_shortcut_check.ps1
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
param ($systemFolder, $shortcut)
|
||||
|
||||
$start = [System.Environment]::GetFolderPath("$systemFolder")
|
||||
Invoke-Item "$start\Programs\Spack\$shortcut"
|
||||
Reference in New Issue
Block a user