Skip to content

Commit

Permalink
Merge branch 'master' into ringabout-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Dec 13, 2024
2 parents 860c66f + 2a2eb30 commit d7c731d
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 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 Expand Up @@ -304,7 +298,7 @@ jobs:
fi
- name: Upload source archive to artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'nim-${{ matrix.setting.commit }}'
path: nim/output/*
Expand Down Expand Up @@ -339,7 +333,7 @@ jobs:
builder: ubuntu-20.04
- target:
os: macosx
builder: macos-12
builder: macos-13
- target:
os: windows
builder: windows-2019
Expand Down Expand Up @@ -381,7 +375,7 @@ jobs:

- name: Download generated source package
if: steps.built.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'nim-${{ matrix.setting.commit }}'
path: source
Expand Down Expand Up @@ -443,9 +437,9 @@ jobs:
fi
- name: Upload binaries to artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'binaries-${{ matrix.setting.branch }}-${{ matrix.setting.commit }}'
name: 'binaries-${{ matrix.setting.branch }}-${{ matrix.setting.commit }}-${{ matrix.target.triple }}'
path: '${{ steps.release.outputs.artifact_nativepath }}'

latestTag:
Expand Down Expand Up @@ -480,16 +474,17 @@ jobs:

- name: Download generated source package
if: steps.deploy-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'nim-${{ matrix.setting.commit }}'
path: source

- name: Download built binaries from artifacts
if: steps.deploy-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'binaries-${{ matrix.setting.branch }}-${{ matrix.setting.commit }}'
pattern: 'binaries-${{ matrix.setting.branch }}-${{ matrix.setting.commit }}-*'
merge-multiple: true
path: binaries

- name: 'Push latest-${{ matrix.setting.branch }} tag'
Expand Down

0 comments on commit d7c731d

Please sign in to comment.