mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-15 17:51:06 +00:00
Upload assets to the release
This commit is contained in:
parent
45029dae9a
commit
e494fb30e9
2 changed files with 49 additions and 12 deletions
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
|||
draft: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
qemu_job:
|
||||
build-qemu:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -30,6 +30,17 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- name: Cache build deps
|
||||
id: cache-deps
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
${{github.workspace}}/build-opt/
|
||||
!${{github.workspace}}/build-opt/CMakeCache.txt
|
||||
key: ${{ runner.os }}-release-deps-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-release-deps-
|
||||
|
||||
- uses: uraimo/run-on-arch-action@v2
|
||||
name: Run commands
|
||||
id: runcmd
|
||||
|
@ -62,8 +73,13 @@ jobs:
|
|||
run: |
|
||||
echo finished
|
||||
ls -al
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dragonfly-aarch64
|
||||
path: build-opt/dragonfly-*tar.gz
|
||||
|
||||
build_native:
|
||||
build-native:
|
||||
runs-on: ubuntu-latest
|
||||
needs: create-release
|
||||
container:
|
||||
|
@ -77,11 +93,28 @@ jobs:
|
|||
- name: Build artifacts
|
||||
run: |
|
||||
./tools/release.sh
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: dragonfly-amd64
|
||||
path: build-opt/dragonfly-*tar.gz
|
||||
|
||||
publish_release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-native, build-qemu]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
name: Download files
|
||||
with:
|
||||
path: artifacts
|
||||
- name: See all the artifacts
|
||||
run: |
|
||||
ls -lR artifacts/
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "build-opt/dragonfly-*"
|
||||
artifacts: "artifacts/dragonfly-*/*"
|
||||
allowUpdates: true
|
||||
body: "example"
|
||||
omitBody: true
|
||||
draft: true
|
||||
prerelease: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -8,8 +8,12 @@ if ! [ -d helio ]; then
|
|||
fi
|
||||
|
||||
ARCH=`uname -m`
|
||||
NAME="dragonfly-${ARCH}"
|
||||
|
||||
pwd
|
||||
./helio/blaze.sh -release -DBoost_USE_STATIC_LIBS=ON -DOPENSSL_USE_STATIC_LIBS=ON
|
||||
cd build-opt
|
||||
ninja dragonfly && ldd dragonfly
|
||||
mv dragonfly dragonfly-${ARCH}
|
||||
strip dragonfly
|
||||
mv dragonfly $NAME
|
||||
tar cvfz $NAME.tar.gz $NAME ../LICENSE
|
||||
|
|
Loading…
Reference in a new issue