mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 14:30:59 -05:00
Add validation to ensure sed commands succeed in enabling languages
Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
This commit is contained in:
parent
ca5642d51f
commit
3777ab0c91
1 changed files with 10 additions and 0 deletions
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
|
|
@ -139,6 +139,11 @@ jobs:
|
|||
cd "$TEST_DIR"
|
||||
# Enable Python in the config (handle variations in whitespace)
|
||||
sed -i 's/python[[:space:]]*=[[:space:]]*false;/python = true;/' flake.nix
|
||||
# Verify the change was successful
|
||||
grep -q "python[[:space:]]*=[[:space:]]*true;" flake.nix || {
|
||||
echo "Error: Failed to enable Python in flake.nix"
|
||||
exit 1
|
||||
}
|
||||
echo "TEST_PYTHON_DIR=$TEST_DIR" >> $GITHUB_ENV
|
||||
|
||||
- name: Build with Python enabled
|
||||
|
|
@ -195,6 +200,11 @@ jobs:
|
|||
cd "$TEST_DIR"
|
||||
# Enable Julia in the config (handle variations in whitespace)
|
||||
sed -i 's/julia[[:space:]]*=[[:space:]]*false;/julia = true;/' flake.nix
|
||||
# Verify the change was successful
|
||||
grep -q "julia[[:space:]]*=[[:space:]]*true;" flake.nix || {
|
||||
echo "Error: Failed to enable Julia in flake.nix"
|
||||
exit 1
|
||||
}
|
||||
echo "TEST_JULIA_DIR=$TEST_DIR" >> $GITHUB_ENV
|
||||
|
||||
- name: Build with Julia enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue