Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Tolk update to testnet #1500

Merged
merged 7 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
create tolk release github action (#1490)
* add create-tolk-release.yml

* adjust create-tolk-release for old workflows

* use custom tag

* use old names

* use old names
  • Loading branch information
neodix42 authored Jan 26, 2025
commit 59a8cf0ae5c3062d14ec4c89a04fee80b5fd05c1
10 changes: 10 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ jobs:
workflow: ton-x86-64-linux.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Download and unzip Linux x86-64 artifacts
@@ -25,6 +26,7 @@ jobs:
workflow: ton-x86-64-linux.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download Mac x86-64 artifacts
@@ -33,6 +35,7 @@ jobs:
workflow: ton-x86-64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Download Mac arm64 artifacts
@@ -41,6 +44,7 @@ jobs:
workflow: ton-arm64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Download and unzip Mac x86-64 artifacts
@@ -49,6 +53,7 @@ jobs:
workflow: ton-x86-64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download and unzip arm64 artifacts
@@ -57,6 +62,7 @@ jobs:
workflow: ton-arm64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download Windows artifacts
@@ -65,6 +71,7 @@ jobs:
workflow: ton-x86-64-windows.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Download and unzip Windows artifacts
@@ -73,6 +80,7 @@ jobs:
workflow: ton-x86-64-windows.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download WASM artifacts
@@ -81,6 +89,7 @@ jobs:
workflow: build-ton-wasm-emscripten.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Download Android Tonlib artifacts
@@ -89,6 +98,7 @@ jobs:
workflow: build-ton-linux-android-tonlib.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Show all artifacts
134 changes: 134 additions & 0 deletions .github/workflows/create-tolk-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
name: Create tolk release

on:
workflow_dispatch:
inputs:
tag:
description: 'tolk release and tag name'
required: true

permissions: write-all

jobs:
create-release:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Download and unzip Linux x86-64 artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: ton-x86-64-linux.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download and unzip Mac x86-64 artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: ton-x86-64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download and unzip arm64 artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: ton-arm64-macos.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download and unzip Windows artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: ton-x86-64-windows.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: false

- name: Download WASM artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: build-ton-wasm-emscripten.yml
path: artifacts
workflow_conclusion: success
branch: master
skip_unpack: true

- name: Show all artifacts
run: |
tree artifacts


# create release
- 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

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ inputs.tag }}
release_name: ${{ inputs.tag }}
draft: false
prerelease: false

# upload

# win

- name: Upload Windows 2019 single artifact - tolk
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/tolk.exe
asset_name: tolk.exe
tag: ${{ inputs.tag }}

# mac x86-64

- name: Upload Mac x86-64 single artifact - tolk
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/tolk
asset_name: tolk-mac-x86-64
tag: ${{ inputs.tag }}

# mac arm64

- name: Upload Mac arm64 single artifact - tolk
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-arm64-macos-binaries/tolk
asset_name: tolk-mac-arm64
tag: ${{ inputs.tag }}

# linux x86-64

- name: Upload Linux x86-64 single artifact - tolk
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/tolk
asset_name: tolk-linux-x86_64
tag: ${{ inputs.tag }}

- name: Upload WASM artifacts
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-wasm-binaries.zip
asset_name: ton-wasm.zip
tag: ${{ inputs.tag }}
Loading