-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial nightly build and refactor existing CI workflow (#168)
* Add initial nightly build and refactor existing CI workflow * Remove test workflow * Make cairo dependencies patch * Remove temporary triggers for ci and nightly workflows * Change version to match compiler's * Add dependecies comment * Add sync version xtask
- Loading branch information
Showing
10 changed files
with
433 additions
and
366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
merge_group: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
checks: | ||
name: Checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
|
||
- name: Run cargo fmt | ||
run: cargo +nightly fmt --check | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Run cargo clippy | ||
run: cargo clippy -- -D warnings | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Get corelib | ||
run: git clone https://github.com/starkware-libs/cairo | ||
- name: Run cargo test | ||
run: CORELIB_PATH="$(pwd)/cairo/corelib/src" cargo test |
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,23 @@ | ||
name: Nightly | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: Build nightly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Upgrade Cairo to latest main commit | ||
run: cargo xtask upgrade cairo --rev $(git ls-remote --refs "https://github.com/starkware-libs/cairo" main | awk '{print $1}') | ||
- name: Get corelib | ||
run: git clone https://github.com/starkware-libs/cairo | ||
- name: Run cargo test | ||
run: CORELIB_PATH="$(pwd)/cairo/corelib/src" cargo test |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.