From 817a36489e82ad65a19aeb80981e65ef1ec7418e Mon Sep 17 00:00:00 2001 From: jekky <11986158+jac3km4@users.noreply.github.com> Date: Thu, 8 Feb 2024 03:34:09 +0000 Subject: [PATCH] chore: separate CI jobs and fix build --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++------ compiler/tests/bytecode.rs | 2 ++ 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c88dd6f9..ae069662 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,28 @@ env: jobs: lint: - name: Lint & test + name: Lint + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "stable" + cache-on-failure: true + - run: cargo clippy + + rustfmt: + name: Check formatting runs-on: windows-latest steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@nightly with: - components: clippy, rustfmt + components: rustfmt - uses: Swatinem/rust-cache@v2 - - name: Run cargo fmt shell: pwsh run: | @@ -43,10 +56,18 @@ jobs: } exit $rustfmt_exit_code - - run: cargo clippy -- -Dwarnings - - run: cargo build + test: + name: Test + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "stable" + cache-on-failure: true - run: cargo test - + build: name: Build & upload artifacts runs-on: windows-latest diff --git a/compiler/tests/bytecode.rs b/compiler/tests/bytecode.rs index 07798a00..fa81b11f 100644 --- a/compiler/tests/bytecode.rs +++ b/compiler/tests/bytecode.rs @@ -487,6 +487,7 @@ fn compile_null_wref_assignment() { TestContext::compiled(vec![sources]).unwrap().run("Testing", check); } +#[allow(illegal_floating_point_literal_pattern)] #[test] fn compile_number_literals() { let sources = " @@ -771,6 +772,7 @@ fn compile_struct_constructor() { TestContext::compiled(vec![sources]).unwrap().run("Testing", check); } +#[allow(illegal_floating_point_literal_pattern)] #[test] fn compile_initializers() { let sources = r#"