Skip to content

Commit

Permalink
Upload dev artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Jan 25, 2024
1 parent 20607a7 commit f6936de
Showing 1 changed file with 77 additions and 14 deletions.
91 changes: 77 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,35 @@ jobs:
package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
- name: upload Android ARM64 artifacts
#if: github.event_name == 'release'
- name: upload Linux amd64 dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-linux-amd64
path: |
package
if-no-files-found: error

- name: upload Android dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-Android
path: |
package_android
if-no-files-found: error

- name: upload Android x86_64 dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-Android-x86_64
path: |
package_android_x86_64
if-no-files-found: error

- name: upload Android ARM64 release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -76,8 +103,8 @@ jobs:
zip -r rapidsnark-android-arm64-${{ github.ref_name }}.zip rapidsnark-android-arm64-${{ github.ref_name }}
gh release upload ${{ github.event.release.tag_name }} rapidsnark-android-arm64-${{ github.ref_name }}.zip
- name: upload Android x86_64 artifacts
#if: github.event_name == 'release'
- name: upload Android x86_64 release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -87,8 +114,8 @@ jobs:
zip -r rapidsnark-android-x86_64-${{ github.ref_name }}.zip rapidsnark-android-x86_64-${{ github.ref_name }}
gh release upload ${{ github.event.release.tag_name }} rapidsnark-android-x86_64-${{ github.ref_name }}.zip
- name: upload Linux x86_64 artifacts
#if: github.event_name == 'release'
- name: upload Linux x86_64 release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down Expand Up @@ -143,8 +170,35 @@ jobs:
package_macos_arm64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
- name: upload iOS artifacts
#if: github.event_name == 'release'
- name: upload macOS arm64 dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-macOS-arm64
path: |
package
if-no-files-found: error

- name: upload iOS dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-iOS
path: |
package_ios
if-no-files-found: error

- name: upload iOS Simulator dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-iOS-Simulator
path: |
package_ios_simulator
if-no-files-found: error

- name: upload iOS release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -154,8 +208,8 @@ jobs:
zip -r rapidsnark-iOS-${{ github.ref_name }}.zip rapidsnark-iOS-${{ github.ref_name }}
gh release upload ${{ github.event.release.tag_name }} rapidsnark-iOS-${{ github.ref_name }}.zip
- name: upload iOS Simulator artifacts
#if: github.event_name == 'release'
- name: upload iOS Simulator release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -165,8 +219,8 @@ jobs:
zip -r rapidsnark-iOS-Simulator-${{ github.ref_name }}.zip rapidsnark-iOS-Simulator-${{ github.ref_name }}
gh release upload ${{ github.event.release.tag_name }} rapidsnark-iOS-Simulator-${{ github.ref_name }}.zip
- name: upload macOS arm64 artifacts
#if: github.event_name == 'release'
- name: upload macOS arm64 release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down Expand Up @@ -211,8 +265,17 @@ jobs:
package_macos_x86_64/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
snarkjs groth16 verify testdata/verification_key.json public.json proof.json
- name: upload macOS x86_64 artifacts
#if: github.event_name == 'release'
- name: upload macOS x86_64 dev artifacts
if: github.event_name != 'release'
uses: actions/upload-artifact@v3
with:
name: rapidsnark-macOS-x86_64
path: |
package_macos_x86_64
if-no-files-found: error

- name: upload macOS x86_64 release artifacts
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand Down

0 comments on commit f6936de

Please sign in to comment.