44 push :
55 branches :
66 - main
7-
7+ - idanh/cross_compile_for_arm
88jobs :
99 artifacts-push :
1010 runs-on : ubuntu-24.04
@@ -17,23 +17,43 @@ jobs:
1717 run : |
1818 echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV
1919
20- - run : cargo build -r
20+ - name : Install cross
21+ run : cargo install cross
22+
23+ - name : Build all binaries (native and ARM)
24+ run : |
25+ cargo build --release
26+ RUSTFLAGS="-C target-cpu=neoverse-v2 -C opt-level=3 -C codegen-units=1 -C target-feature=+sve" cross build --release --target=aarch64-unknown-linux-gnu
2127
2228 - name : Authenticate with GCS
2329 uses : " google-github-actions/auth@v2"
2430 with :
2531 credentials_json : ${{ secrets.SA_GPS_ARTIFACTS_BUCKET_WRITER_ACCESS_KEY }}
2632
27- - name : Upload cairo_program_runner binary to GCP
28- id : upload_cairo_program_runner
33+ - name : Upload cairo_program_runner x86_64 binary to GCP
34+ id : upload_cairo_program_runner_x86
2935 uses : " google-github-actions/upload-cloud-storage@v2"
3036 with :
3137 path : " target/release/cairo_program_runner"
3238 destination : " cairo_program_runner_artifacts/${{ env.SHORT_HASH }}/release"
3339
34- - name : Upload stwo_vm_runner binary to GCP
35- id : upload_stwo_vm_runner
40+ - name : Upload stwo_vm_runner x86_64 binary to GCP
41+ id : upload_stwo_vm_runner_x86
3642 uses : " google-github-actions/upload-cloud-storage@v2"
3743 with :
3844 path : " target/release/stwo_vm_runner"
3945 destination : " stwo_vm_runner_artifacts/${{ env.SHORT_HASH }}/release"
46+
47+ - name : Upload cairo_program_runner ARM binary to GCP
48+ id : upload_cairo_program_runner_arm
49+ uses : " google-github-actions/upload-cloud-storage@v2"
50+ with :
51+ path : " target/aarch64-unknown-linux-gnu/release/cairo_program_runner"
52+ destination : " cairo_program_runner_artifacts/${{ env.SHORT_HASH }}/aarch64-release"
53+
54+ - name : Upload stwo_vm_runner ARM binary to GCP
55+ id : upload_stwo_vm_runner_arm
56+ uses : " google-github-actions/upload-cloud-storage@v2"
57+ with :
58+ path : " target/aarch64-unknown-linux-gnu/release/stwo_vm_runner"
59+ destination : " stwo_vm_runner_artifacts/${{ env.SHORT_HASH }}/aarch64-release"
0 commit comments