From aff6b36578372c5480e092fda25246ba2f2daf39 Mon Sep 17 00:00:00 2001 From: Oleg Lomaka Date: Thu, 16 Nov 2023 15:10:27 -0500 Subject: [PATCH] final version --- .github/workflows/build.yml | 81 +++++++++++-------------------------- 1 file changed, 23 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e45228..2956f58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,65 +7,8 @@ on: - cibuild jobs: - build-apple-test: - runs-on: macos-13-xlarge - steps: - - uses: actions/checkout@v4 - with: - submodules: "recursive" - - - name: Cache circuits - uses: actions/cache@v3 - with: - path: | - circuits - key: circuits-ci.zip - - - name: Get circuits - run: | - set -e - if [[ ! -d "circuits" ]]; then - mkdir circuits - curl -o circuits/ci.zip -L https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/ci.zip - unzip -o circuits/ci.zip -d circuits - rm circuits/ci.zip - fi - - - name: Cache gmp build - uses: actions/cache@v3 - with: - path: | - depends/gmp - depends/gmp-6.2.1.tar.xz - key: ${{ runner.os }}-witnesscalc-gmp-apple-arm64-${{ hashFiles('build_gmp.sh') }} - - - name: install dependencies - run: | - brew install nasm - - - name: build gmp - run: | - if [[ ! -d "depends/gmp/package" ]]; then ./build_gmp.sh host; fi - if [[ ! -d "depends/gmp/package_ios_arm64" ]]; then ./build_gmp.sh ios; fi - if [[ ! -d "depends/gmp/package_iphone_simulator" ]]; then ./build_gmp.sh ios_simulator; fi - - - name: build - run: | - mkdir build_witnesscalc && cd build_witnesscalc - cmake .. -DTARGET_PLATFORM=arm64_host -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../package - make -j8 -vvv - make install - cd ../ - - - name: test witness generation - run: | - npm install -g snarkjs - mkdir temp - ./run_tests.sh - build-apple-arm64: runs-on: macos-13-xlarge - if: false steps: - uses: actions/checkout@v4 with: @@ -137,6 +80,29 @@ jobs: cp -r ../package/include ../package_ios_simulator/include cd ../ + - name: Cache circuits + uses: actions/cache@v3 + with: + path: | + circuits + key: circuits-ci.zip + + - name: Get circuits + run: | + set -e + if [[ ! -d "circuits" ]]; then + mkdir circuits + curl -o circuits/ci.zip -L https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/ci.zip + unzip -o circuits/ci.zip -d circuits + rm circuits/ci.zip + fi + + - name: test witness generation + run: | + npm install -g snarkjs + mkdir temp + ./run_tests.sh + - name: upload macOS arm64 artifacts uses: actions/upload-artifact@v3 with: @@ -163,7 +129,6 @@ jobs: build-linux: runs-on: ubuntu-22.04 - if: false steps: - uses: actions/checkout@v4 with: