temp #128
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload-Artifacts | |
| on: | |
| push: | |
| branches: | |
| - idanh/temp_bucket | |
| jobs: | |
| artifacts-push: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get commit hash prefix for PR update | |
| env: | |
| COMMIT_SHA: ${{ github.sha }} | |
| run: | | |
| echo "SHORT_HASH=${COMMIT_SHA:0:7}" >> $GITHUB_ENV | |
| - name: Install cross | |
| run: cargo install cross | |
| - name: Build all binaries (native and ARM) | |
| run: | | |
| cargo build --release | |
| 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 | |
| - name: Authenticate with GCS | |
| uses: "google-github-actions/auth@v2" | |
| with: | |
| credentials_json: ${{ secrets.SA_GPS_ARTIFACTS_BUCKET_WRITER_ACCESS_KEY }} | |
| - name: Upload cairo_program_runner x86_64 binary to GCP | |
| id: upload_cairo_program_runner_x86 | |
| uses: "google-github-actions/upload-cloud-storage@v2" | |
| with: | |
| path: "target/release/cairo_program_runner" | |
| destination: "cairo_program_runner_artifacts/${{ env.SHORT_HASH }}/release" | |
| - name: Upload stwo_vm_runner x86_64 binary to GCP | |
| id: upload_stwo_vm_runner_x86 | |
| uses: "google-github-actions/upload-cloud-storage@v2" | |
| with: | |
| path: "target/release/stwo_vm_runner" | |
| destination: "stwo_vm_runner_artifacts/${{ env.SHORT_HASH }}/release" | |
| - name: Upload cairo_program_runner ARM binary to GCP | |
| id: upload_cairo_program_runner_arm | |
| uses: "google-github-actions/upload-cloud-storage@v2" | |
| with: | |
| path: "target/aarch64-unknown-linux-gnu/release/cairo_program_runner" | |
| destination: "cairo_program_runner_artifacts/6f7913b/aarch64-release" | |
| - name: Upload stwo_vm_runner ARM binary to GCP | |
| id: upload_stwo_vm_runner_arm | |
| uses: "google-github-actions/upload-cloud-storage@v2" | |
| with: | |
| path: "target/aarch64-unknown-linux-gnu/release/stwo_vm_runner" | |
| destination: "stwo_vm_runner_artifacts/6f7913b/aarch64-release" |