Skip to content

Commit 6c35317

Browse files
committed
fix github build issue
1 parent c0aca39 commit 6c35317

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
# the matrix because GitHub Actions changed the default architecture
4747
# of macos-latest since macos-14.
4848
target: ${{ matrix.target }}
49+
# (optional) On which platform to distribute the `.tar.gz` file.
50+
# [default value: unix]
51+
# [possible values: all, unix, windows, none]
52+
tar: none
4953
# (optional) On which platform to distribute the `.zip` file.
5054
# [default value: windows]
5155
# [possible values: all, unix, windows, none]

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --verbose
1921
- name: Run tests
2022
run: cargo test --verbose

asm/tests/dex/read_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use java_asm::dex::{DexFile, DexFileAccessor};
2-
use std::rc::Rc;
2+
use std::sync::Arc;
33
use std::time::Instant;
44

55
#[test]
@@ -14,7 +14,7 @@ fn read_dex_test() {
1414
let resolve_start = Instant::now();
1515
let demo_methods = demo_class_data.direct_methods.iter().map(|m| {
1616
let code_item = dex_accessor.get_code_item(m.code_off).unwrap();
17-
(Rc::clone(&m.name), code_item)
17+
(Arc::clone(&m.name), code_item)
1818
}).collect::<Vec<_>>();
1919
println!("Methods instructions resolved in {:?}", resolve_start.elapsed());
2020

0 commit comments

Comments
 (0)