Skip to content

Commit 65f145d

Browse files
committed
make upload-bindings an action
1 parent bd23181 commit 65f145d

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

.github/actions/upload/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build and upload bindings
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
6+
runs:
7+
using: "composite"
8+
steps:
9+
- name: Build
10+
uses: ./.github/actions/build
11+
- name: generate tar
12+
run: |
13+
set -Eeu
14+
./pin.sh
15+
nix build o1js#bindings-tar --out-link bindings.tar.gz
16+
- name: Upload bindings
17+
uses: actions/upload-artifact@v4
18+
with:
19+
name: bindings.tar.gz
20+
path: bindings.tar.gz

.github/workflows/checks.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,16 @@ jobs:
6969
if: steps.get_changed_files.outputs.files_changed == 'true'
7070
run: xargs npm run lint:strict < changed_files.txt
7171

72-
Upload:
72+
Upload-bindings:
73+
name: upload bindings artifact
7374
needs: [Prepare]
74-
runs-on: ubuntu-latest
75+
runs-on: [sdk-self-hosted-linux-amd64-build-system]
7576
steps:
76-
- uses: ./.github/workflows/remote_bindings.yml@${{ github.sha }}
77+
- uses: actions/checkout@v4
78+
with:
79+
submodules: recursive
80+
- name: upload
81+
uses: ./.github/actions/upload
7782

7883
Build-And-Test-Server:
7984
needs: [Prepare]

.github/workflows/remote_bindings.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ jobs:
1111
- uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
14-
- name: Build
15-
uses: ./.github/actions/build
16-
- name: generate tar
17-
run: |
18-
set -Eeu
19-
./pin.sh
20-
nix build o1js#bindings-tar --out-link bindings.tar.gz
21-
- name: Upload bindings
22-
uses: actions/upload-artifact@v4
23-
with:
24-
name: bindings.tar.gz
25-
path: bindings.tar.gz
14+
- name: upload
15+
uses: ./.github/actions/upload
16+

0 commit comments

Comments
 (0)