Skip to content

Commit d2969a9

Browse files
committed
(main) fix: github actions
1 parent b20f389 commit d2969a9

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Rust nightly
22

33
on:
44
push:
@@ -15,7 +15,11 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
- name: Update
19+
run: rustup update
20+
- name: Nighlty
21+
run: rustup default nightly
1822
- name: Build
19-
run: cargo build --verbose
23+
run: cargo +nightly build --verbose
2024
- name: Run tests
21-
run: cargo test --verbose
25+
run: cargo +nightly test --verbose

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,4 @@ repository = "https://www.github.com/t-webber/ccompiler"
88

99
[dependencies]
1010

11-
# [[bin]]
12-
# name = "lib"
13-
# path = "src/lib.rs"
14-
15-
1611
[features]

rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "nightly"

tests/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fs;
22

3-
use expressions::prelude::*;
3+
use ccompiler::prelude::*;
44
use number_types::Number;
55
use tokens_types::TokenValue;
66

tests/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use expressions::prelude::*;
1+
use ccompiler::prelude::*;
22

33
fn test_parser_on_string(content: &str, output: &str) {
44
let files = &[(String::new(), content)];

0 commit comments

Comments
 (0)