Skip to content

Commit

Permalink
add .tar.gz release variants
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Apr 3, 2024
1 parent 39e2822 commit 932f3e9
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ jobs:
asset_name: serve-d_linux-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.xz
asset_content_type: application/x-gtar

- name: Deploy Linux release (tar.gz)
if: matrix.os == 'ubuntu-20.04'
uses: WebFreak001/deploy-nightly@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/Pure-D/serve-d/releases/20717582/assets{?name,label}
release_id: 20717582
asset_path: ./serve-d.tar.gz
asset_name: serve-d_linux-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.gz
asset_content_type: application/gzip

# OSX release
- name: Build OSX release
run: ./ci/build.sh
Expand All @@ -92,6 +104,18 @@ jobs:
asset_name: serve-d_osx-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.xz
asset_content_type: application/x-gtar

- name: Deploy OSX release (tar.gz)
if: matrix.os == 'macos-latest'
uses: WebFreak001/deploy-nightly@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/Pure-D/serve-d/releases/20717582/assets{?name,label}
release_id: 20717582
asset_path: ./serve-d.tar.gz
asset_name: serve-d_osx-nightly-${{ steps.vars.outputs.arch_short }}-$$.tar.gz
asset_content_type: application/gzip

# Windows release
- name: Build Windows release
run: .\ci\build.bat
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ jobs:
mime: application/x-gtar
name: serve-d_${TAG}-${OS}.tar.xz

- name: Deploy Linux release (tar.gz)
if: matrix.os == 'ubuntu-20.04'
uses: WebFreak001/upload-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OS: linux-${{ steps.vars.outputs.arch_short }}
with:
file: ./serve-d.tar.gz
mime: application/gzip
name: serve-d_${TAG}-${OS}.tar.gz

# OSX release
- name: Build OSX release
run: ./ci/build.sh && rdmd ci/validate_version.d
Expand All @@ -82,6 +93,17 @@ jobs:
mime: application/x-gtar
name: serve-d_${TAG}-${OS}.tar.xz

- name: Deploy OSX release (tar.gz)
if: matrix.os == 'macos-latest'
uses: WebFreak001/upload-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OS: osx-${{ steps.vars.outputs.arch_short }}
with:
file: ./serve-d.tar.gz
mime: application/gzip
name: serve-d_${TAG}-${OS}.tar.gz

# Windows release
- name: Build Windows release
run: (.\ci\build.bat) -and (rdmd ci\validate_version.d)
Expand Down
1 change: 1 addition & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ else
fi

tar cfJ serve-d.tar.xz serve-d
tar czf serve-d.tar.gz serve-d
1 change: 1 addition & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ VERSION=$(./serve-d --version 2>&1 | grep -oh "serve-d standalone v[0-9]*\.[0-9]
echo $VERSION > version.txt
echo $VERSION
tar cfJ serve-d_$VERSION-linux-x86_64.tar.xz serve-d
tar czf serve-d_$VERSION-linux-x86_64.tar.gz serve-d

0 comments on commit 932f3e9

Please sign in to comment.