Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
ci: release ci added
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jul 30, 2024
1 parent 6381edc commit 3f30874
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
update-client:
strategy:
fail-fast: true
name: Build update-client
name: build-update-client
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
membership:
strategy:
fail-fast: true
name: Build membership
name: build-membership
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -62,7 +62,7 @@ jobs:
uc-and-membership:
strategy:
fail-fast: true
name: Build uc-and-membership
name: build-uc-and-membership
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
release:
types: [published]

jobs:
release:
name: build-and-upload
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
- name: Install just
uses: extractions/setup-just@v2
- name: Build SP1 Programs
run: just build-programs
- name: Upload RISC-V ELF files
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./elf/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
7 changes: 4 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
lints:
name: Clippy and Fmt
name: fmt-and-clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -32,7 +32,7 @@ jobs:
command: clippy

tests:
name: Unit Tests
name: unit-tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -43,6 +43,7 @@ jobs:
profile: minimal
toolchain: stable
override: true

- name: Run unit tests
uses: actions-rs/cargo@v1
with:
Expand All @@ -52,7 +53,7 @@ jobs:
RUST_BACKTRACE: 1

build-all-features:
name: Build (without programs)
name: build-without-programs
runs-on: ubuntu-latest
continue-on-error: true
steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/upload-programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
upload:
strategy:
fail-fast: true
name: Build and Upload Programs
name: build-and-upload
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -29,7 +29,6 @@ jobs:

- name: Build SP1 Programs
run: just build-programs

- name: Upload Programs
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 3f30874

Please sign in to comment.