From fade1e1ee4422e83b5e7d2ff295340d6a7347bbf Mon Sep 17 00:00:00 2001 From: seiren Date: Thu, 28 Dec 2023 15:53:55 +0900 Subject: [PATCH] use makefile --- .github/workflows/rust.yml | 13 ++++++++++++- raylib-rs-plain/src/lib.rs | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f84bd8b..32db3f4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,7 +22,18 @@ jobs: - run: rustup show - run: rustup component list --installed - run: cargo --version - - run: cargo build -vv + + - run: choco --version + # - run: choco install mingw -y + - name: Display PATH + run: echo $Env:PATH + - run: copy "C:\mingw64\bin\gcc.exe" "C:\mingw64\bin\cc.exe" + - run: dir "C:\mingw64\bin" + - run: gcc --version + - run: cc --version + + - run: cargo install cargo-make + - run: cargo make build-plain -vv - run: cargo test _ci -- --nocapture - run: rustup component add clippy - run: cargo clippy diff --git a/raylib-rs-plain/src/lib.rs b/raylib-rs-plain/src/lib.rs index d756aec..8af152a 100644 --- a/raylib-rs-plain/src/lib.rs +++ b/raylib-rs-plain/src/lib.rs @@ -12,7 +12,7 @@ use std::ffi::CString; use std::ptr::null_mut; pub mod color_define; pub use color_define as color; -// wip: pub mod function; +pub mod function; pub fn init_window(width: ::std::os::raw::c_int, height: ::std::os::raw::c_int, title: &str) { let title: CString = CString::new(title).unwrap();