From 7878578dba955d51ea4f0e0753070f92a9c0f636 Mon Sep 17 00:00:00 2001 From: neodiX42 Date: Fri, 5 May 2023 03:50:46 -0500 Subject: [PATCH] Add day to the git tag name (#652) * Add day to the git tag name * Change release tag generation method. v2023.04 v2023.04-1 v2023.04-2 v2023.04-3 etc * add git fetch to get all tags * add git fetch to get all tags --- .github/workflows/create-release.yml | 181 ++++++++++++++------------- recent_changelog.md | 6 + 2 files changed, 101 insertions(+), 86 deletions(-) create mode 100644 recent_changelog.md diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 85d0dc259..cb6651220 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -27,21 +27,21 @@ jobs: workflow_conclusion: success skip_unpack: false -# - name: Download Linux arm64 artifacts -# uses: dawidd6/action-download-artifact@v2 -# with: -# workflow: ton-aarch64-linux.yml -# path: artifacts -# workflow_conclusion: success -# skip_unpack: true -# -# - name: Download and unzip Linux arm64 artifacts -# uses: dawidd6/action-download-artifact@v2 -# with: -# workflow: ton-aarch64-linux.yml -# path: artifacts -# workflow_conclusion: success -# skip_unpack: false + # - name: Download Linux arm64 artifacts + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: ton-aarch64-linux.yml + # path: artifacts + # workflow_conclusion: success + # skip_unpack: true + # + # - name: Download and unzip Linux arm64 artifacts + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: ton-aarch64-linux.yml + # path: artifacts + # workflow_conclusion: success + # skip_unpack: false - name: Download Mac x86-64 artifacts uses: dawidd6/action-download-artifact@v2 @@ -59,21 +59,21 @@ jobs: workflow_conclusion: success skip_unpack: false -# - name: Download Mac arm64 artifacts -# uses: dawidd6/action-download-artifact@v2 -# with: -# workflow: ton-aarch64-macos.yml -# path: artifacts -# workflow_conclusion: success -# skip_unpack: true -# -# - name: Download and unzip Mac arm64 artifacts -# uses: dawidd6/action-download-artifact@v2 -# with: -# workflow: ton-aarch64-macos.yml -# path: artifacts -# workflow_conclusion: success -# skip_unpack: false + # - name: Download Mac arm64 artifacts + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: ton-aarch64-macos.yml + # path: artifacts + # workflow_conclusion: success + # skip_unpack: true + # + # - name: Download and unzip Mac arm64 artifacts + # uses: dawidd6/action-download-artifact@v2 + # with: + # workflow: ton-aarch64-macos.yml + # path: artifacts + # workflow_conclusion: success + # skip_unpack: false - name: Download Windows artifacts uses: dawidd6/action-download-artifact@v2 @@ -104,26 +104,35 @@ jobs: tree artifacts -# create release + # create release - name: Read Changelog.md and use it as a body of new release id: read_release shell: bash run: | - r=$(cat Changelog.md) + r=$(cat recent_changelog.md) r="${r//'%'/'%25'}" r="${r//$'\n'/'%0A'}" r="${r//$'\r'/'%0D'}" echo "::set-output name=CHANGELOG_BODY::$r" - - name: Get current date - id: date - run: echo "::set-output name=date::$(date +'%Y.%m')" + - name: Get next tag + id: tag + run: | + git fetch --all --tags + git tag -l + NEW_TAG=v$(date +'%Y.%m') + FOUND=$(git tag -l | grep $NEW_TAG | wc -l) + if [ $FOUND -eq 0 ]; then + echo "TAG=$NEW_TAG" >> $GITHUB_OUTPUT + else + echo "TAG=$NEW_TAG-$FOUND" >> $GITHUB_OUTPUT + fi - name: Get registration token id: getRegToken run: | - curl -X POST -H \"Accept: application/vnd.github+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/ton-blockchain/ton/actions/runners/registration-token + curl -X POST -H \"Accept: application/vnd.github+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/ton-blockchain/ton/actions/runners/registration-token - name: Create release id: create_release @@ -131,16 +140,16 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v${{ steps.date.outputs.date }} - release_name: v${{ steps.date.outputs.date }} + tag_name: ${{ steps.tag.outputs.TAG }} + release_name: TON ${{ steps.tag.outputs.TAG }} body: | ${{ steps.read_release.outputs.CHANGELOG_BODY }} draft: false prerelease: false -# upload + # upload -# win + # win - name: Upload Windows 2019 artifacts uses: svenstaro/upload-release-action@v2 @@ -148,7 +157,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries.zip asset_name: ton-win-x86-64.zip - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - fift uses: svenstaro/upload-release-action@v2 @@ -156,7 +165,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/fift.exe asset_name: fift.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - func uses: svenstaro/upload-release-action@v2 @@ -164,7 +173,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/func.exe asset_name: func.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - lite-client uses: svenstaro/upload-release-action@v2 @@ -172,7 +181,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/lite-client.exe asset_name: lite-client.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - rldp-http-proxy uses: svenstaro/upload-release-action@v2 @@ -180,7 +189,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/rldp-http-proxy.exe asset_name: rldp-http-proxy.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - http-proxy uses: svenstaro/upload-release-action@v2 @@ -188,7 +197,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/http-proxy.exe asset_name: http-proxy.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - storage-daemon-cli uses: svenstaro/upload-release-action@v2 @@ -196,7 +205,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/storage-daemon-cli.exe asset_name: storage-daemon-cli.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - tonlibjson uses: svenstaro/upload-release-action@v2 @@ -204,7 +213,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/tonlibjson.dll asset_name: tonlibjson.dll - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Windows 2019 single artifact - tonlib-cli uses: svenstaro/upload-release-action@v2 @@ -212,9 +221,9 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-win-binaries/tonlib-cli.exe asset_name: tonlib-cli.exe - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} -# mac x86-64 + # mac x86-64 - name: Upload Mac x86-64 artifacts uses: svenstaro/upload-release-action@v2 @@ -222,7 +231,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries.zip asset_name: ton-mac-x86-64.zip - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - fift uses: svenstaro/upload-release-action@v2 @@ -230,7 +239,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/fift asset_name: fift-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - func uses: svenstaro/upload-release-action@v2 @@ -238,7 +247,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/func asset_name: func-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - lite-client uses: svenstaro/upload-release-action@v2 @@ -246,7 +255,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/lite-client asset_name: lite-client-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - rldp-http-proxy uses: svenstaro/upload-release-action@v2 @@ -254,7 +263,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/rldp-http-proxy asset_name: rldp-http-proxy-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - http-proxy uses: svenstaro/upload-release-action@v2 @@ -262,7 +271,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/http-proxy asset_name: http-proxy-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - storage-daemon-cli uses: svenstaro/upload-release-action@v2 @@ -270,7 +279,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/storage-daemon-cli asset_name: storage-daemon-cli-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - tonlibjson uses: svenstaro/upload-release-action@v2 @@ -278,7 +287,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/libtonlibjson.dylib asset_name: tonlibjson-mac-x86-64.dylib - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Mac x86-64 single artifact - tonlib-cli uses: svenstaro/upload-release-action@v2 @@ -286,9 +295,9 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-macos-binaries/tonlib-cli asset_name: tonlib-cli-mac-x86-64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} -# linux x86-64 + # linux x86-64 - name: Upload Linux x86-64 artifacts uses: svenstaro/upload-release-action@v2 @@ -296,7 +305,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries.zip asset_name: ton-linux-x86_64.zip - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - fift uses: svenstaro/upload-release-action@v2 @@ -304,7 +313,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/fift asset_name: fift-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - func uses: svenstaro/upload-release-action@v2 @@ -312,7 +321,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/func asset_name: func-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - lite-client uses: svenstaro/upload-release-action@v2 @@ -320,7 +329,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/lite-client asset_name: lite-client-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - rldp-http-proxy uses: svenstaro/upload-release-action@v2 @@ -328,7 +337,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/rldp-http-proxy asset_name: rldp-http-proxy-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - http-proxy uses: svenstaro/upload-release-action@v2 @@ -336,7 +345,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/http-proxy asset_name: http-proxy-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - storage-daemon-cli uses: svenstaro/upload-release-action@v2 @@ -344,7 +353,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/storage-daemon-cli asset_name: storage-daemon-cli-linux-x86_64 - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - tonlibjson uses: svenstaro/upload-release-action@v2 @@ -352,7 +361,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/libtonlibjson.so.0.5 asset_name: tonlibjson-linux-x86_64.so - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} - name: Upload Linux x86-64 single artifact - tonlib-cli uses: svenstaro/upload-release-action@v2 @@ -360,23 +369,23 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-x86_64-linux-binaries/tonlib-cli asset_name: tonlib-cli-linux-x86_64 - tag: v${{ steps.date.outputs.date }} - -# - name: Upload Linux arm64 artifacts -# uses: svenstaro/upload-release-action@v2 -# with: -# repo_token: ${{ secrets.GITHUB_TOKEN }} -# file: artifacts/ton-aarch64-linux-binaries.zip -# asset_name: ton-linux-arm64.zip -# tag: v${{ steps.date.outputs.date }} -# -# - name: Upload Mac arm64 artifacts -# uses: svenstaro/upload-release-action@v2 -# with: -# repo_token: ${{ secrets.GITHUB_TOKEN }} -# file: artifacts/ton-aarch64-macos-binaries -# asset_name: ton-mac-arm64.zip -# tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} + + # - name: Upload Linux arm64 artifacts + # uses: svenstaro/upload-release-action@v2 + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: artifacts/ton-aarch64-linux-binaries.zip + # asset_name: ton-linux-arm64.zip + # tag: ${{ steps.tag.outputs.TAG }} + # + # - name: Upload Mac arm64 artifacts + # uses: svenstaro/upload-release-action@v2 + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: artifacts/ton-aarch64-macos-binaries + # asset_name: ton-mac-arm64.zip + # tag: ${{ steps.tag.outputs.TAG }} - name: Upload WASM artifacts uses: svenstaro/upload-release-action@v2 @@ -384,4 +393,4 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: artifacts/ton-wasm-binaries.zip asset_name: ton-wasm-binaries.zip - tag: v${{ steps.date.outputs.date }} + tag: ${{ steps.tag.outputs.TAG }} diff --git a/recent_changelog.md b/recent_changelog.md new file mode 100644 index 000000000..592976697 --- /dev/null +++ b/recent_changelog.md @@ -0,0 +1,6 @@ +## 03.2023 Update +1. Improvement of ADNL connection stability +2. Transaction emulator support and getAccountStateByTransaction method +3. Fixes of typos, undefined behavior and timer warnings +4. Handling incorrect integer literal values in funC; funC version bumped to 0.4.2 +5. FunC Mathlib \ No newline at end of file