Skip to content

Commit

Permalink
general: Update repo & CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkajetanp committed Aug 20, 2024
1 parent adf9cce commit 79c55d8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 25 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,29 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Build
uses: actions-rs/cargo@v1
run: cargo build --verbose

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Run tests
uses: actions-rs/cargo@v1
run: cargo test --verbose
38 changes: 19 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
[package]
name = "c-compiler"
name = "rcc"
version = "0.1.0"
edition = "2021"

[features]
# Enable the LLVM codegen backend
llvm = ["llvm-sys"]

[[bin]]
name = "rcc"
path = "src/main.rs"

[dependencies]
clap = { version = "4.5.11", features = ["derive"] }
colog = "1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::Parser;
use log::LevelFilter;

use c_compiler::*;
use rcc::*;

#[derive(Parser)]
#[command(version, about, long_about = None)]
Expand Down

0 comments on commit 79c55d8

Please sign in to comment.