-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add non-nix installation instructions #765
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ad1bf25
Add non-nix installation instructions
sveitser 838558f
Enable building on PR to create workflow
sveitser c445811
Checkout code
sveitser 08d19eb
Warning: apt does not have a stable CLI interface.
sveitser 079d465
Remove pull request trigger
sveitser 1944fdd
Add missing toolchain file
sveitser 82857ae
CI: github doesn't show workflow trigger :(
sveitser 6b3ae2a
Add clippy
sveitser dac70ff
Remove pull request trigger
sveitser 33ccd53
Merge branch 'main' into ma/non-nix-install
sveitser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Ubuntu install without nix | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * MON" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install and test | ||
# Execute all lines that start with four spaces, and remove leading 'sudo ' | ||
# because we're in a container and already root. | ||
run: | | ||
grep '^ ' doc/ubuntu.md \ | ||
| sed 's/^ //' \ | ||
| sed 's/^sudo //' \ | ||
| bash -exo pipefail | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Installing on ubuntu (without nix) | ||
|
||
<!-- Note that all lines that start with four spaces will be executed in the CI --> | ||
|
||
## Install system dependencies | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y curl cmake pkg-config libssl-dev protobuf-compiler git | ||
|
||
## Install rustup | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable | ||
source $HOME/.cargo/env | ||
|
||
## Install foundry | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf -L https://foundry.paradigm.xyz | bash | ||
source $HOME/.bashrc | ||
foundryup | ||
|
||
## Clone the repository | ||
|
||
git clone https://github.com/EspressoSystems/espresso-sequencer/ | ||
cd espresso-sequencer | ||
|
||
## Run the rust tests | ||
|
||
export RUSTFLAGS='--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"' | ||
cargo test --release | ||
|
||
## Run the foundry tests | ||
|
||
cargo build --release --bin diff-test | ||
export PATH=$PWD/target/release:$PATH | ||
forge test -v | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[toolchain] | ||
channel = "1.73.0" | ||
components = [ "rustfmt", "llvm-tools-preview", "rust-src", "clippy" ] | ||
profile = "minimal" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty nifty 👍