Skip to content

Commit

Permalink
SKALED-1900 Release in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit committed Aug 23, 2024
1 parent 5ff07a7 commit 0eaa2b8
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=RelWithDebInfo
export CMAKE_BUILD_TYPE=Release
cd deps
./clean.sh
rm -f ./libwebsockets-from-git.tar.gz
Expand All @@ -102,44 +102,38 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=RelWithDebInfo
export CMAKE_BUILD_TYPE=Release
mkdir -p build
cd build
# -DCMAKE_C_FLAGS=-O3 -DCMAKE_CXX_FLAGS=-O3
cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE ..
cd ..
- name: Build all
run: |
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=RelWithDebInfo
export CMAKE_BUILD_TYPE=Release
cd build
make skaled -j$(nproc)
#echo "Ensure release mode skaled does not have any debug markers"
cp skaled/skaled skaled/skaled-debug
cd ..
- name: Configure historic state build
run: |
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=RelWithDebInfo
export CMAKE_BUILD_TYPE=Release
mkdir -p build-historic
cd build-historic
# -DCMAKE_C_FLAGS=-O3 -DCMAKE_CXX_FLAGS=-O3
cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DHISTORIC_STATE=1 ..
cd ..
- name: Build historic state version
run: |
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=RelWithDebInfo
export CMAKE_BUILD_TYPE=Release
cd build-historic
make skaled -j$(nproc)
#echo "Ensure release mode skaled does not have any debug markers"
cp skaled/skaled skaled/skaled-debug
cd ..
- name: Build and publish container
run: |
Expand Down Expand Up @@ -175,15 +169,6 @@ jobs:
asset_path: ./build/skaled/skaled
asset_name: skaled
asset_content_type: application/octet-stream
- name: Upload debug binary to Release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/skaled/skaled-debug
asset_name: skaled-debug
asset_content_type: application/octet-stream
- name: Build and publish historic-state container
run: |
cp build-historic/skaled/skaled scripts/skale_build/executable/
Expand All @@ -205,15 +190,6 @@ jobs:
asset_path: ./build-historic/skaled/skaled
asset_name: skaled-historic
asset_content_type: application/octet-stream
- name: Upload historic-state debug binary to Release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build-historic/skaled/skaled-debug
asset_name: skaled-debug-historic
asset_content_type: application/octet-stream
outputs:
version_orig: ${{ env.VERSION_ORIG }}
version_historic: ${{ env.VERSION_HISTORIC }}
Expand Down

0 comments on commit 0eaa2b8

Please sign in to comment.