Skip to content

Commit

Permalink
Merge pull request #17 from hiddenshadow21/RavenDB-23340
Browse files Browse the repository at this point in the history
RavenDB-23340 Check actual dotnet runtime needed for given version
  • Loading branch information
gregolsky authored Dec 20, 2024
2 parents 5f5c228 + 84e13af commit e5dd7b1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,31 @@ env:
DRY_RUN: ${{ inputs.dry_run }}

jobs:
extractMajorVersion:
extractDotnetMajorVersion:
runs-on: ubuntu-latest
outputs:
major: ${{ steps.extract_version.outputs.major }}
major: ${{ steps.extract_dotnet_version.outputs.major }}
steps:
- id: extract_version
- name: Download tar package
run: |
downloadURL="https://daily-builds.s3.amazonaws.com/RavenDB-${{ inputs.version }}-linux-x64.tar.bz2"
wget -q "$downloadURL"
- id: extract_dotnet_version
name: Extract dotnet version
run: |
major=$(echo "${{ inputs.version }}" | cut -d '.' -f1)
tar -xf RavenDB-${{ inputs.version }}-linux-x64.tar.bz2 RavenDB/runtime.txt
major=$(grep "Runtime" RavenDB/runtime.txt | cut -d: -f2 | tr -d [:space:] | cut -d '.' -f1)
echo "major=$major" >> $GITHUB_OUTPUT
debPackage:
name: Build DEB package
needs: extractMajorVersion
needs: extractDotnetMajorVersion
strategy:
matrix:
arch: [ x64, arm32v7, arm64v8 ]
ubuntuName: [focal, jammy, noble ]
isDotnet9:
- ${{ fromJSON(needs.extractMajorVersion.outputs.major) > 6 }}
- ${{ fromJSON(needs.extractDotnetMajorVersion.outputs.major) == 9 }}
exclude:
- isDotnet9: true
ubuntuName: focal
Expand Down

0 comments on commit e5dd7b1

Please sign in to comment.