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

Commit

Permalink
Merge pull request #13 from EspressoSystems/oss-build
Browse files Browse the repository at this point in the history
Use OSS build method
  • Loading branch information
Ancient123 committed Mar 4, 2022
2 parents ec46c80 + e8e0e29 commit 8a7235d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,45 @@ name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:

jobs:
build:
runs-on: self-hosted
container:
image: registry.gitlab.com/asuran-rs/containers/rust-sccache-docker:1.56
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
name: Cancel Outdated Builds
- name: Cancel Outdated Builds
uses: styfle/cancel-workflow-action@0.9.1
with:
all_but_latest: true
access_token: ${{ github.token }}

- uses: actions/checkout@v2
name: Checkout Repository
- name: Checkout Repository
uses: actions/checkout@v3

- name: Configure Git
run: |
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com".insteadOf ssh://git@github.com
git config --global url."https://ancient123:${{ secrets.ORG_GITHUB_PAT }}@github.com/EspressoSystems".insteadOf https://github.com/EspressoSystems
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
override: true
default: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v1
name: Enable Rust Caching
- name: Enable Rust Caching
uses: Swatinem/rust-cache@v1

- name: Format Check
run: cargo fmt -- --check

- uses: actions-rs/clippy-check@v1
name: Clippy
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ github.token }}
args: --workspace -- -D warnings
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ license = "GPL-3.0-or-later"
ark-serialize = { version = "0.3.0", features = ["derive"] }
ark-std = { version = "0.3.0", default-features = false }
bincode = "1.3.3"
commit = { git = "https://github.com/EspressoSystems/commit.git", rev = "f48cd52c59755eade0605111826eef3df6abdcf8" }
commit = { git = "https://github.com/EspressoSystems/commit.git", tag = "0.1.0" }
futures = "0.3.16"
generic-array = { version = "0.14.4", features = ["serde"] }
itertools = "0.10.1"
jf-cap = { features=["std"], git = "https://github.com/EspressoSystems/cap.git", rev = "16ad157f96d2102d59206df0106fb341302180d3" }
jf-cap = { features=["std"], git = "https://github.com/EspressoSystems/cap.git", tag = "0.0.1" }
jf-utils = { features=["std"], git = "https://github.com/EspressoSystems/jellyfish.git" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.61"
Expand Down

0 comments on commit 8a7235d

Please sign in to comment.