Skip to content

Commit

Permalink
Merge pull request #296 from qzhuyan/ci/william/update-release-workflow
Browse files Browse the repository at this point in the history
update release workflow
  • Loading branch information
qzhuyan authored Sep 20, 2024
2 parents 8ad53d0 + e5b6b15 commit 63604ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ jobs:
- name: build release
if: startsWith(github.ref, 'refs/tags/')
run: |
IMAGE=ghcr.io/emqx/emqx-builder/5.3-5:1.15.7-${{ matrix.otp }}-${{ matrix.os }}
IMAGE=ghcr.io/emqx/emqx-builder/5.3-13:1.15.7-${{ matrix.otp }}-${{ matrix.os }}
docker run -i --rm -v $(pwd):/wd --workdir /wd --platform=linux/${{ matrix.arch }} \
-e BUILD_RELEASE=1 -e QUIC_TLS=${{ matrix.openssl }} \
$IMAGE bash -euc 'git config --global --add safe.directory /wd; make'
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
- uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags/')
with:
name: quicer-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.otp }}-${{ matrix.openssl }}
Expand All @@ -131,16 +131,15 @@ jobs:
- linux
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- uses: actions/download-artifact@v4
with:
pattern: 'quicer-*'
path: packages
merge-multiple: true
- name: Create Release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
uses: softprops/action-gh-release@v2
with:
name: quicer ${{ github.ref_name }} Released
body: quicer ${{ github.ref_name }} Released
files: packages/*
draft: false
draft: true
prerelease: false
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ release() {
fi
mkdir -p _packages
TARGET_PKG="_packages/${PKGNAME}"
tar czvf "$TARGET_PKG" -C $(dirname "$TARGET_SO") --exclude include --exclude share --exclude .gitignore .
tar czvf "$TARGET_PKG" -C $(dirname "$TARGET_SO") \
--exclude include --exclude share --exclude .gitignore \
--exclude lib \
.
# use openssl but not sha256sum command because in some macos env it does not exist
if command -v openssl; then
openssl dgst -sha256 "${TARGET_PKG}" | cut -d ' ' -f 2 > "${TARGET_PKG}.sha256"
Expand Down
2 changes: 1 addition & 1 deletion test/quicer_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3097,7 +3097,7 @@ tc_setopt_global_lb_mode_ifip(_Config) ->
quicer:close_lib(),
{ok, _} = quicer:open_lib(),
?assertEqual(
{ok, 2},
{ok, ?QUIC_LOAD_BALANCING_SERVER_ID_FIXED},
quicer:getopt(quic_global, load_balacing_mode)
).

Expand Down

0 comments on commit 63604ad

Please sign in to comment.