Skip to content

Commit

Permalink
set arch
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty2501 committed Jul 18, 2022
1 parent 023c0f3 commit 2415680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ jobs:
with:
toolchain: stable
target: ${{ matrix.target }}
default: true
- run: cargo build --target ${{ matrix.target }} --release
env:
ARCH: ${{ matrix.arch }}

env:
CARGO_TERM_COLOR: always
4 changes: 2 additions & 2 deletions crates/open_jtalk-sys/build.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::{env, path::Path};
fn main() {
let mut cmake_conf = cmake::Config::new("open_jtalk");
#[cfg(target_pointer_width = "32")]
panic!("32bit!");
let target = env::var("TARGET").unwrap();
panic!("target:{}", target);

let debug = env::var("DEBUG").is_ok();
// open_jtalkのビルドprofileがdebugだとWindowsでリンクエラーになるため、Releaseにする
Expand Down

0 comments on commit 2415680

Please sign in to comment.