Skip to content

Commit

Permalink
Adds nightly build schedule (#463)
Browse files Browse the repository at this point in the history
Co-authored-by: Koby <[email protected]>
  • Loading branch information
kobyhallx and Koby authored Nov 14, 2022
1 parent 0070622 commit c79e2af
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
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

0 comments on commit c79e2af

Please sign in to comment.