forked from ton-blockchain/ton
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from disintar/dev
Up to date with testnet
- Loading branch information
Showing
216 changed files
with
6,559 additions
and
4,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-xc++ | ||
-std=c++14 | ||
-std=c++17 | ||
-iquote . | ||
-iquote tdtl/ | ||
-iquote tl/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: "DEV tvm-python x86_64 Linux" | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
pull_request: | ||
branches: [ dev ] | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build39: # Fast deploy to dev | ||
strategy: | ||
matrix: | ||
python: [ 39 ] | ||
runs-on: [ self-hosted, Linux, X64 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
USER: runner | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: disintar | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
env: | ||
USER: runner | ||
|
||
- run: | | ||
export KERNEL=$(nix eval --raw 'nixpkgs#hostPlatform.parsed.kernel.name') | ||
echo "TARGET_SYSTEM=x86_64-$KERNEL" >> $GITHUB_ENV | ||
echo "RELEASE_NAME=ton-cpython-${{ matrix.python }}-x86_64-$KERNEL" >> $GITHUB_ENV | ||
- name: Compile | ||
run: nix build .?submodules=1#packages.x86_64-linux.ton-python-${{ matrix.python }} | ||
--print-build-logs --system x86_64-linux -o result-x86_64 | ||
|
||
- name: Copy binaries | ||
run: | | ||
ls -lart | ||
mkdir artifacts | ||
cp $PWD/result-x86_64/lib/* artifacts/ | ||
- name: Simple binaries test | ||
run: nix develop .#packages.x86_64-linux.ton-python-${{ matrix.python }} | ||
-c bash -c "cd artifacts; python3 -c 'import python_ton'" | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ env.RELEASE_NAME }} | ||
path: artifacts | ||
|
||
- name: Upload artifacts | ||
uses: workflow/[email protected] | ||
with: | ||
flakes: nixpkgs#gh | ||
script: | | ||
gh release delete -y "$RELEASE_NAME" || true | ||
gh release create --notes "" "$RELEASE_NAME" artifacts/* | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,22 @@ | ||
name: "tvm-python x86_64 Linux" | ||
|
||
on: [push,workflow_dispatch,workflow_call] | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build39: # Fast deploy to dev | ||
strategy: | ||
matrix: | ||
python: [39] | ||
runs-on: [self-hosted, Linux, X64] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
USER: runner | ||
|
||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: disintar | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
env: | ||
USER: runner | ||
|
||
- run: | | ||
export KERNEL=$(nix eval --raw 'nixpkgs#hostPlatform.parsed.kernel.name') | ||
echo "TARGET_SYSTEM=x86_64-$KERNEL" >> $GITHUB_ENV | ||
echo "RELEASE_NAME=ton-cpython-${{ matrix.python }}-x86_64-$KERNEL" >> $GITHUB_ENV | ||
- name: Compile | ||
run: nix build .?submodules=1#packages.x86_64-linux.ton-python-${{ matrix.python }} | ||
--print-build-logs --system x86_64-linux -o result-x86_64 | ||
|
||
- name: Copy binaries | ||
run: | | ||
ls -lart | ||
mkdir artifacts | ||
cp $PWD/result-x86_64/lib/* artifacts/ | ||
- name: Simple binaries test | ||
run: nix develop .#packages.x86_64-linux.ton-python-${{ matrix.python }} | ||
-c bash -c "cd artifacts; python3 -c 'import python_ton'" | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: ${{ env.RELEASE_NAME }} | ||
path: artifacts | ||
|
||
- name: Upload artifacts | ||
uses: workflow/[email protected] | ||
with: | ||
flakes: nixpkgs#gh | ||
script: | | ||
gh release delete -y "$RELEASE_NAME" || true | ||
gh release create --notes "" "$RELEASE_NAME" artifacts/* | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
python: [310, 311] | ||
python: [39, 310, 311] | ||
runs-on: [self-hosted, Linux, X64] | ||
needs: | ||
- build39 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.