Skip to content

Commit 8f7eba9

Browse files
fix(ci): allow service CLI access to cairo-compile
Signed-off-by: Dori Medini <dori@starkware.co>
1 parent 28ec973 commit 8f7eba9

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/committer_and_os_cli_push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV
6666

6767
- name: Build CLI binary
68-
run: ./build_native_in_docker.sh rustup toolchain install && cargo build -p starknet_committer_and_os_cli -r --bin starknet_committer_and_os_cli --target-dir CLI_TARGET
68+
run: ./build_native_in_docker.sh cargo build -p starknet_committer_and_os_cli -r --bin starknet_committer_and_os_cli --target-dir CLI_TARGET
6969

7070
- id: auth
7171
uses: "google-github-actions/auth@v2"

.github/workflows/committer_ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ jobs:
3636
if: ${{ github.event_name == 'pull_request' }}
3737
steps:
3838
- uses: actions/checkout@v4
39+
40+
# Setup pypy and link to the location expected by .cargo/config.toml.
41+
- uses: actions/setup-python@v5
42+
id: setup-pypy
43+
with:
44+
python-version: "pypy3.9"
45+
cache: 'pip'
46+
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
47+
- env:
48+
LD_LIBRARY_PATH: ${{ steps.setup-pypy.outputs.pythonLocation }}/bin
49+
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
50+
- run: pip install -r scripts/requirements.txt
51+
52+
# Bootstrap.
3953
- uses: ./.github/actions/bootstrap
4054
with:
4155
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -57,6 +71,20 @@ jobs:
5771
- uses: actions/checkout@v4
5872
with:
5973
ref: ${{ github.base_ref }}
74+
75+
# Setup pypy and link to the location expected by .cargo/config.toml.
76+
- uses: actions/setup-python@v5
77+
id: setup-pypy
78+
with:
79+
python-version: "pypy3.9"
80+
cache: 'pip'
81+
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9
82+
- env:
83+
LD_LIBRARY_PATH: ${{ steps.setup-pypy.outputs.pythonLocation }}/bin
84+
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV
85+
- run: pip install -r scripts/requirements.txt
86+
87+
# Bootstrap.
6088
- uses: ./.github/actions/bootstrap
6189
with:
6290
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)