Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/publish-x86_64-apple-darwin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: build-x86_64-apple-darwin

on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *" # run at 2 AM UTC
push:
tags:
- "v*"
Expand Down Expand Up @@ -49,13 +52,22 @@ jobs:
cp ./target/x86_64-apple-darwin/release/nargo ./dist/nargo
mkdir -p ./dist/noir-lang/std
cp crates/std_lib/src/*.nr ./dist/noir-lang/std
7z a -ttar -so -an ./dist | 7z a -si ./nargo-x86_64-apple-darwin.tar.gz
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-x86_64-apple-darwin.tar.gz

- name: Release
uses: softprops/action-gh-release@v1
- name: Upload binaries to nightly
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./nargo-x86_64-apple-darwin.tar.gz
asset_name: nargo-x86_64-apple-darwin.tar.gz
overwrite: true
tag: nightly

- name: Upload binaries to Version
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./nargo-x86_64-apple-darwin.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./nargo-x86_64-apple-darwin.tar.gz
asset_name: nargo-x86_64-apple-darwin.tar.gz
25 changes: 18 additions & 7 deletions .github/workflows/publish-x86_64-unknown-linux-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: build-x86_64-unknown-linux-gnu

on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *" # run at 2 AM UTC
push:
tags:
- "v*"
Expand Down Expand Up @@ -52,13 +54,22 @@ jobs:
cp ./target/${{ matrix.target }}/release/nargo ./dist/nargo
mkdir -p ./dist/noir-lang/std
cp crates/std_lib/src/*.nr ./dist/noir-lang/std
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-${{ matrix.target }}.gz
7z a -ttar -so -an ./dist/* | 7z a -si ./nargo-${{ matrix.target }}.tar.gz

- name: Release
uses: softprops/action-gh-release@v1
- name: Upload binaries to nightly
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./nargo-${{ matrix.target }}.tar.gz
asset_name: nargo-${{ matrix.target }}.tar.gz
overwrite: true
tag: nightly

- name: Upload binaries to Version
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./nargo-${{ matrix.target }}.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./nargo-${{ matrix.target }}.tar.gz
asset_name: nargo-${{ matrix.target }}.tar.gz