Skip to content

Commit

Permalink
chore: separate CI jobs and fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jac3km4 committed Feb 8, 2024
1 parent 95b0387 commit 817a364
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions compiler/tests/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "
Expand Down Expand Up @@ -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#"
Expand Down

0 comments on commit 817a364

Please sign in to comment.