Skip to content

Commit

Permalink
chore: unified different to architectures, as some environments refer…
Browse files Browse the repository at this point in the history
…red to them differently

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
  • Loading branch information
knzo25 committed Feb 19, 2025
1 parent 83a8e79 commit b339f6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ansible/roles/spconv/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# cspell:ignore Bcumm, cumm, spconv
- name: Normalize dpkg architecture

Check failure on line 2 in ansible/roles/spconv/tasks/main.yaml

View workflow job for this annotation

GitHub Actions / pre-commit-ansible

fqcn[action-core]

Use FQCN for builtin module actions (set_fact).
set_fact:
normalized_arch: "{{ ansible_architecture | regex_replace('aarch64', 'arm64') | regex_replace('x86_64', 'amd64') }}"

- name: Download the cumm package
ansible.builtin.get_url:
mode: "0644"
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/cumm_{{ cumm_version }}_{{ ansible_architecture }}.deb
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/cumm_{{ cumm_version }}_{{ normalized_arch }}.deb
dest: /tmp/cumm.deb

- name: Install the cumm package
Expand All @@ -14,7 +18,7 @@
- name: Download the spconv package
ansible.builtin.get_url:
mode: "0644"
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/spconv_{{ spconv_version }}_{{ ansible_architecture }}.deb
url: https://github.com/knzo25/spconv_cpp/releases/download/spconv_v{{ spconv_version }}%2Bcumm_v{{ cumm_version }}/spconv_{{ spconv_version }}_{{ normalized_arch }}.deb
dest: /tmp/spconv.deb

- name: Install the spconv package
Expand Down

0 comments on commit b339f6a

Please sign in to comment.