File tree Expand file tree Collapse file tree 5 files changed +34
-26
lines changed
Expand file tree Collapse file tree 5 files changed +34
-26
lines changed Original file line number Diff line number Diff line change @@ -69,32 +69,14 @@ jobs:
6969 if : steps.get_changed_files.outputs.files_changed == 'true'
7070 run : xargs npm run lint:strict < changed_files.txt
7171
72-
73- # The upload job is seperate from the build job because
74- # other workflows have to wait for the cache
75- # so the split is nesecary to avoid waiting for the artifact upload too
76- Upload-bindings :
77- name : upload bindings artifact
78- needs : [Prepare]
79- runs-on : [sdk-self-hosted-linux-amd64-build-system]
72+ Upload :
73+ needs : Prepare
8074 steps :
81- - name : Set up Nix
82- run : echo "PATH=$PATH:/nix/var/nix/profiles/default/bin" >> $GITHUB_ENV
83- - name : Disable smudging
84- run : echo "GIT_LFS_SKIP_SMUDGE=1" >> $GITHUB_ENV
8575 - uses : actions/checkout@v4
8676 with :
8777 submodules : recursive
88- - name : generate tar
89- run : |
90- set -Eeu
91- ./pin.sh
92- nix build o1js#bindings-tar --out-link bindings.tar.gz
93- - name : Upload bindings
94- uses : actions/upload-artifact@v4
95- with :
96- name : bindings.tar.gz
97- path : bindings.tar.gz
78+ - name : dispatch
79+ uses : ./.github/workflows/remote_bindings.yml
9880
9981 Build-And-Test-Server :
10082 needs : Prepare
Original file line number Diff line number Diff line change 1+ name : Build and upload bindings
2+ on :
3+ workflow_dispatch :
4+ workflow_call :
5+
6+ Upload-bindings :
7+ name : upload bindings artifact
8+ needs : [Prepare]
9+ runs-on : [sdk-self-hosted-linux-amd64-build-system]
10+ steps :
11+ steps :
12+ - uses : actions/checkout@v4
13+ with :
14+ submodules : recursive
15+ - name : Build
16+ uses : ./.github/actions/build
17+ - name : generate tar
18+ run : |
19+ set -Eeu
20+ ./pin.sh
21+ nix build o1js#bindings-tar --out-link bindings.tar.gz
22+ - name : Upload bindings
23+ uses : actions/upload-artifact@v4
24+ with :
25+ name : bindings.tar.gz
26+ path : bindings.tar.gz
Original file line number Diff line number Diff line change 44(which gh > /dev/null 2>&1 ) || (echo " Please install gh the github cli tool: https://github.com/cli/cli#installation" && exit 1)
55
66REV=${REV:= $(git rev-parse HEAD)}
7- RUN_ID=$( gh run list --commit " $REV " --workflow ' build-bindings .yml' --json databaseId --jq ' .[0].databaseId' )
7+ RUN_ID=$( gh run list --commit " $REV " --workflow ' remote_bindings .yml' --json databaseId --jq ' .[0].databaseId' )
88
99if [ -z " $RUN_ID " ]
1010then
Original file line number Diff line number Diff line change 11# /usr/bin/env bash
22set -e
3- gh workflow run build-bindings .yml --ref $( git branch --show-current)
3+ gh workflow run remote_bindings .yml --ref $( git branch --show-current)
44sleep 5 # wait a bit to make sure the job exists
55" $( dirname " $0 " ) " /download-bindings.sh
You can’t perform that action at this time.
0 commit comments