Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xxrlzzz committed Jan 4, 2024
1 parent 6fb433a commit 622e316
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- uses: actions/checkout@v3
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev

- name: Build
run: cargo build --release
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ features = [
'File',
"FileReader",
]
optional = true


[profile.release]
Expand Down Expand Up @@ -83,6 +84,6 @@ jni = { version = "0.19.0", default-features = false }
default = ["use_gl"]
use_gl = ["gl", "glfw"]
native-audio = ["portaudio"]
wasm = []
wasm = ["web-sys"]
wasm-miniapp = []
use_sdl2 = ["sdl2"]
1 change: 1 addition & 0 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ fn main() {
let library_name = "SDL2";
let root = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
// Link SDL2 for android.
#[cfg(target_os = "android")]
match env::var("TARGET") {
Ok(target) => {
let relative_path = if target.contains("armv7") {
Expand Down

0 comments on commit 622e316

Please sign in to comment.