Skip to content

Commit

Permalink
fix get_toolchain_download_url
Browse files Browse the repository at this point in the history
  • Loading branch information
eduadiez committed Jul 19, 2024
1 parent 7db7586 commit c0abbbc
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 4 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: PR

on:
push:
branches: [develop]
pull_request:
branches:
- "**"
merge_group:

jobs:
test-x86_64:
name: Test on x86_64
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
toolchain: nightly-2024-04-17
args: --all-targets --all-features

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
toolchain: nightly-2024-04-17
args: --release --features
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1

lint:
name: Formatting & Clippy
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
env:
CARGO_INCREMENTAL: 1

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets -- -D warnings -A incomplete-features
env:
CARGO_INCREMENTAL: 1
4 changes: 4 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
msrv = "1.79"
# bytes::Bytes is included by default and alloy_primitives::Bytes is a wrapper around it,
# so it is safe to ignore it as well
ignore-interior-mutability = ["bytes::Bytes", "alloy_primitives::Bytes"]
14 changes: 10 additions & 4 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
fn_params_layout = "Tall"
reorder_imports = true
imports_granularity = "Crate"
use_small_heuristics = "Max"
max_width = 120
reorder_modules = false
reorder_imports = false
comment_width = 100
wrap_comments = true
binop_separator = "Back"
trailing_comma = "Vertical"
trailing_semicolon = false
use_field_init_shorthand = true
format_code_in_doc_comments = true
doc_comment_code_block_width = 100
1 change: 1 addition & 0 deletions ziskos/entrypoint/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![feature(asm_const)]
#![allow(unexpected_cfgs)]

pub mod ziskos_definitions;

Expand Down

0 comments on commit c0abbbc

Please sign in to comment.