Skip to content

Commit 13c7a2e

Browse files
committed
fix remote bindings scripts
1 parent d1c5fb4 commit 13c7a2e

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

.github/workflows/checks.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff 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
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

flake.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bindings/scripts/download-bindings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
(which gh > /dev/null 2>&1) || (echo "Please install gh the github cli tool: https://github.com/cli/cli#installation" && exit 1)
55

66
REV=${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

99
if [ -z "$RUN_ID" ]
1010
then
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# /usr/bin/env bash
22
set -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)
44
sleep 5 # wait a bit to make sure the job exists
55
"$(dirname "$0")"/download-bindings.sh

0 commit comments

Comments
 (0)