Skip to content

Commit b1ecd98

Browse files
committed
chore(CI): add workflow
Signed-off-by: jschwabe <mail@jschwabe.site>
1 parent 656016c commit b1ecd98

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install Rust
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: nightly-2024-11-01
22+
23+
- name: Build
24+
run: cargo build --verbose
25+
26+
- name: Run tests
27+
run: cargo test --verbose

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#[cfg(all(unix, not(target_os = "macos")))]
22
fn main() {
33
// add unix dependencies below
4-
println!("cargo:rustc-flags=-l readline");
4+
// println!("cargo:rustc-flags=-l readline");
5+
println!("cargo:rustc-link-arg=-Wl,-undefined,dynamic_lookup"); // Add additional linker flags
56
}
67

78
#[cfg(target_os = "macos")]

0 commit comments

Comments
 (0)