forked from starkware-libs/sequencer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
162 changed files
with
13,486 additions
and
11,482 deletions.
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
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ runs: | |
with: | ||
cache-base: main(-v[0-9].*)? | ||
inherit-toolchain: true | ||
bins: [email protected] | ||
env: | ||
RUSTFLAGS: "-C link-arg=-fuse-ld=lld" |
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
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
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ on: | |
|
||
env: | ||
CI: 1 | ||
RUSTFLAGS: "-D warnings" | ||
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld" | ||
|
||
# On PR events, cancel existing CI runs on this same PR for this workflow. | ||
concurrency: | ||
|
@@ -35,11 +35,7 @@ jobs: | |
# Fetch the entire history. Required to checkout the merge target commit, so the diff can | ||
# be computed. | ||
fetch-depth: 0 | ||
- uses: baptiste0928/cargo-install@v3 | ||
with: | ||
crate: taplo-cli | ||
version: '0.9.0' | ||
locked: true | ||
|
||
|
||
# Setup pypy and link to the location expected by .cargo/config.toml. | ||
- uses: actions/setup-python@v5 | ||
|
@@ -137,60 +133,3 @@ jobs: | |
env: | ||
SEED: 0 | ||
|
||
codecov: | ||
runs-on: starkware-ubuntu-latest-large | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Fetch the entire history. | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/bootstrap | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- run: npm install -g [email protected] | ||
|
||
# Setup pypy and link to the location expected by .cargo/config.toml. | ||
- uses: actions/setup-python@v5 | ||
id: setup-pypy | ||
with: | ||
python-version: "pypy3.9" | ||
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9 | ||
- env: | ||
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin | ||
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV | ||
|
||
- name: "Run codecov on pull request" | ||
id: run_codecov_pr | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
python3 -m venv ci | ||
ci/bin/pip install -r scripts/requirements.txt | ||
ci/bin/python scripts/run_tests.py --command codecov --changes_only --commit_id ${{ github.event.pull_request.base.sha }} | ||
if [ -f codecov.json ]; then | ||
echo "codecov_output=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "codecov_output=false" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
SEED: 0 | ||
|
||
- name: "Run codecov on push" | ||
if: github.event_name == 'push' | ||
# TODO: Better support for running tests on push. | ||
run: | | ||
python3 -m venv ci | ||
ci/bin/pip install -r scripts/requirements.txt | ||
ci/bin/python scripts/run_tests.py --command codecov | ||
echo "codecov_output=true" >> $GITHUB_OUTPUT | ||
env: | ||
SEED: 0 | ||
|
||
- name: Codecov | ||
if: steps.run_codecov_pr.outputs.codecov_output == 'true' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
fail_ci_if_error: true | ||
version: "v0.1.15" |
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,57 @@ | ||
name: Main-CI-Nightly | ||
on: | ||
schedule: | ||
- cron: '30 23 * * *' # Uses ubuntu runner. | ||
workflow_dispatch: # Uses ubuntu runner. | ||
|
||
env: | ||
RUSTFLAGS: "-D warnings -C link-arg=-fuse-ld=lld" | ||
|
||
jobs: | ||
codecov: | ||
runs-on: starkware-ubuntu-latest-large | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Fetch the entire history. | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/bootstrap | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- run: npm install -g [email protected] | ||
|
||
# Setup pypy and link to the location expected by .cargo/config.toml. | ||
- uses: actions/setup-python@v5 | ||
id: setup-pypy | ||
with: | ||
python-version: "pypy3.9" | ||
- run: ln -s '${{ steps.setup-pypy.outputs.python-path }}' /usr/local/bin/pypy3.9 | ||
- env: | ||
LD_LIBRARY_PATH: ${{ env.Python3_ROOT_DIR }}/bin | ||
run: echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> $GITHUB_ENV | ||
|
||
- name: "Run codecov on pull request" | ||
id: run_codecov_pr | ||
run: | | ||
python3 -m venv ci | ||
ci/bin/pip install -r scripts/requirements.txt | ||
ci/bin/python scripts/run_tests.py --command codecov --changes_only --commit_id ${{ github.event.pull_request.base.sha }} | ||
if [ -f codecov.json ]; then | ||
echo "codecov_output=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "codecov_output=false" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
SEED: 0 | ||
|
||
- name: Codecov | ||
if: steps.run_codecov_pr.outputs.codecov_output == 'true' | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
fail_ci_if_error: true | ||
version: "v0.1.15" | ||
|
||
|
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
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
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
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
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ tmp_venv/* | |
.vscode/settings.json | ||
/data | ||
/logs | ||
/sequencer_data | ||
/target | ||
/.vscode | ||
# Git hooks | ||
|
Oops, something went wrong.