diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bd8f9a0..e51fa12 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,12 +10,19 @@ env: CARGO_TERM_COLOR: always jobs: - build: + ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install Deps run: sudo apt -y install libudev-dev - - name: ci + - name: CI run: ./ci.sh + ci-esp: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: CI + run: ./ci-esp.sh diff --git a/src/init.rs b/src/init.rs index 380d261..50a00f8 100644 --- a/src/init.rs +++ b/src/init.rs @@ -139,8 +139,8 @@ impl Init { target = chip.target, rustflags = match variant { Variant::C3 => "rustflags = [\n\"-C\", \"force-frame-pointers\",\n]", - Variant::S2 => "rustflags = [\n\"-C\", \"link-arg=-nostartfiles\",\n]", - Variant::S3 => "rustflags = [\n\"-C\", \"link-arg=-nostartfiles\",\n]", + Variant::S2 | Variant::S3 => + "rustflags = [\n\"-C\", \"link-arg=-nostartfiles\",\n]", } ), _ => format!(