Skip to content

Commit

Permalink
Merge pull request #28384 from ProvableHQ/refactor/leo-examples
Browse files Browse the repository at this point in the history
[Refactor] Remove `examples` and add it back in as a submodule
  • Loading branch information
d0cd authored Oct 10, 2024
2 parents dbf4aca + af6e9a8 commit 8854b56
Show file tree
Hide file tree
Showing 267 changed files with 42 additions and 13,278 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- install_rust_nightly
- setup_environment:
cache_key: leo-fmt-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Check style
no_output_timeout: 35m
Expand All @@ -72,6 +75,9 @@ jobs:
- checkout
- setup_environment:
cache_key: leo-clippy-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Clippy
no_output_timeout: 35m
Expand All @@ -89,6 +95,9 @@ jobs:
- checkout
- setup_environment:
cache_key: leo-executable-cache
- run:
name: Update Submodules
command: git submodule update --init --recursive
- run:
name: Build and install Leo
no_output_timeout: 30m
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/acl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache Ubuntu
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -109,6 +111,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache
run: |
Expand Down Expand Up @@ -165,6 +169,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust Stable
uses: actions-rs/toolchain@v1
Expand All @@ -189,6 +195,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
ref: mainnet

- name: Install sccache
Expand Down Expand Up @@ -257,6 +264,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
with:
submodules: true

- name: Install sccache Ubuntu
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
SCCACHE_DIR: /home/runner/.cache/sccache
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install sccache Ubuntu
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
with:
submodules: true
ref: mainnet

- name: Install sccache
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 2

- name: Get changed files
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -98,7 +100,9 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -146,6 +150,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -202,6 +208,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples"]
path = examples
url = https://github.com/ProvableHQ/leo-examples
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ We recommend installing Rust using [rustup](https://www.rustup.rs/). You can ins
We recommend installing Leo by building from the source code as follows:

```bash
# Download the source code
git clone https://github.com/ProvableHQ/leo
# Download the source code and initialize the submodules
git clone --recurse-submodules https://github.com/ProvableHQ/leo
cd leo
# Install 'leo'
Expand Down
1 change: 1 addition & 0 deletions examples
Submodule examples added at b75bb7
26 changes: 0 additions & 26 deletions examples/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions examples/auction/.env

This file was deleted.

4 changes: 0 additions & 4 deletions examples/auction/.gitignore

This file was deleted.

57 changes: 0 additions & 57 deletions examples/auction/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions examples/auction/build/main.aleo

This file was deleted.

6 changes: 0 additions & 6 deletions examples/auction/build/program.json

This file was deleted.

1 change: 0 additions & 1 deletion examples/auction/leo.lock

This file was deleted.

6 changes: 0 additions & 6 deletions examples/auction/program.json

This file was deleted.

Loading

0 comments on commit 8854b56

Please sign in to comment.