Skip to content

Commit

Permalink
Support ali armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
innobead committed Feb 18, 2021
1 parent 898d2cb commit 3bb60ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions generated/packages/ali.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ targets:
- LinuxArm64:
artifact_templates:
- "ali_{version}_linux_arm64.tar.gz"
- LinuxArm32:
artifact_templates:
- "ali_{version}_linux_armv7.tar.gz"
- MacOS:
artifact_templates:
- "ali_{version}_darwin_amd64.tar.gz"
Expand Down
4 changes: 2 additions & 2 deletions src/app/src/service/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ impl CacheTrait for CacheService {
let regex = Regex::new(pattern)?;

self.get_package_indexes()?
.iter()
.filter_map(|it| {
.par_iter()
.filter_map(|it: &PackageIndex| {
if regex.is_match(&it.name) {
if let Ok(p) = self.get_package(&it.name) {
Some(p)
Expand Down
10 changes: 10 additions & 0 deletions src/generator/src/pkg/ali.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ pub fn release() -> Package {
tag_version_regex_template: None,
scan_dirs: None,
}),
PackageTargetType::LinuxArm32(PackageManagement {
artifact_templates: vec!["ali_{version}_linux_armv7.tar.gz".to_string()],
executable_templates: None,
executable_mappings: None,
install_commands: None,
uninstall_commands: None,
upgrade_commands: None,
tag_version_regex_template: None,
scan_dirs: None,
}),
PackageTargetType::MacOS(PackageManagement {
artifact_templates: vec!["ali_{version}_darwin_amd64.tar.gz".to_string()],
executable_templates: None,
Expand Down

0 comments on commit 3bb60ca

Please sign in to comment.