forked from iden3/circomlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request iden3#80 from iden3/master
Adding changes in master to branch primes and custom gates
- Loading branch information
Showing
5 changed files
with
46 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,40 @@ | ||
name: release circom binaries | ||
|
||
name: Publish binaries | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
tags: | ||
- '*' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build-ubuntu: | ||
runs-on: ubuntu-latest | ||
build-and-publish: | ||
name: Publish for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
artifact_name: circom | ||
asset_name: circom-linux-amd64 | ||
- os: windows-latest | ||
artifact_name: circom.exe | ||
asset_name: circom-windows-amd64.exe | ||
- os: macos-latest | ||
artifact_name: circom | ||
asset_name: circom-macos-amd64 | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Compile | ||
id: compile | ||
run: cargo build --verbose --release | ||
- name: Checkout project | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
- name: Tar files | ||
run: tar -cvf circom.tar -C /home/runner/work/circom/circom/target/release circom | ||
- name: Build | ||
run: cargo build --verbose --release | ||
|
||
- name: Upload binary | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: circom | ||
path: | | ||
circom.tar | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: target/release/${{ matrix.artifact_name }} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref }} | ||
asset_name: ${{ matrix.asset_name }} |
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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