Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

track the version-2-2 branch #88

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
shell: bash
run: |
# Tracked branches
branches=( 'devel' 'version-2-0' 'version-1-6')
branches=('devel' 'version-2-2' 'version-2-0')

getHash() {
git ls-remote "https://github.com/$1" "$2" | cut -f 1
Expand Down Expand Up @@ -129,13 +129,7 @@ jobs:
jq --null-input --arg tag "$tag" '{ release: $tag }'
jq --null-input --argjson nightlies_revision "$nightlies_revision" '{ nightlies_revision: $nightlies_revision }'
jq --null-input --argjson build_revision "$buildRevision" '{ build_revision: $build_revision }'

if [[ "$tag" == version-2-0 ]]; then
jq --null-input --argjson csources "nim-lang/csources_v2" '{ csources: $csources }'
fi
if [[ "$tag" == devel ]]; then
jq --null-input --argjson csources "nim-lang/csources_v2" '{ csources: $csources }'
fi
jq --null-input --arg csources "nim-lang/csources_v2" '{ csources: $csources }'

} | jq -s --arg commit "$commit" 'reduce .[] as $item ({ commit: $commit }; . + $item)' > "settings/$branch.json"
else
Expand Down Expand Up @@ -190,8 +184,8 @@ jobs:
shell: bash
run: |
csources_repo=${{ matrix.setting.csources }}
# if one is not set, use csources_v1
: "${csources_repo:=nim-lang/csources_v1}"
# if one is not set, use csources_v2
: "${csources_repo:=nim-lang/csources_v2}"
csources_commit=$(git ls-remote "https://github.com/$csources_repo" master | cut -f 1)

if [[ -f nim/config/build_config.txt ]]; then
Expand Down
Loading