Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env.sh: add support for arm64 #886

Merged
merged 1 commit into from
Apr 6, 2022
Merged

env.sh: add support for arm64 #886

merged 1 commit into from
Apr 6, 2022

Conversation

javierhonduco
Copy link
Contributor

Currently we download the x86 binaries even on arm, let's fetch
the tilt + minikube binaries for the matching architecture

Had to bump ctlptl to 0.5.1 as they started generating the arm64
builds starting that version. Changes between v0.5.0-v0.5.1

Test plan:

$ ./env.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 35 68.2M   35 24.4M    0     0  6040k      0  0:00:11  0:00:04  0:00:07 6039k^C
[vagrant@bazinga parca]$ ./env.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68.2M  100 68.2M    0     0  6127k      0  0:00:11  0:00:11 --:--:-- 6057k
+ tar -xzv tilt
+ curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v0.27.0/tilt.0.27.0.linux.arm64.tar.gz
tilt
+ copy_binary
+ [[ :/home/vagrant/.local/bin:/home/vagrant/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/go/bin:/bin:/usr/local/go/bin:/home/vagrant/go/bin: == *\:\/\h\o\m\e\/\v\a\g\r\a\n\t\/\.\l\o\c\a\l\/\b\i\n\:* ]]
+ '[' '!' -d /home/vagrant/.local/bin ']'
+ mv tilt /home/vagrant/.local/bin/tilt
+ set +x
Tilt installed!
For the latest Tilt news, subscribe: https://tilt.dev/subscribe
Run `tilt up` to start.
ctlptl
$ echo $?
0

Currently we download the x86 binaries even on arm, let's fetch
the `tilt` + `minikube` binaries for the matching architecture

Had to bump `ctlptl` to 0.5.1 as they started generating the arm64
builds starting that version. Changes between [v0.5.0-v0.5.1](tilt-dev/ctlptl@v0.5.0...v0.5.1)

**Test plan**:
```shell
$ ./env.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 35 68.2M   35 24.4M    0     0  6040k      0  0:00:11  0:00:04  0:00:07 6039k^C
[vagrant@bazinga parca]$ ./env.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68.2M  100 68.2M    0     0  6127k      0  0:00:11  0:00:11 --:--:-- 6057k
+ tar -xzv tilt
+ curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v0.27.0/tilt.0.27.0.linux.arm64.tar.gz
tilt
+ copy_binary
+ [[ :/home/vagrant/.local/bin:/home/vagrant/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/go/bin:/bin:/usr/local/go/bin:/home/vagrant/go/bin: == *\:\/\h\o\m\e\/\v\a\g\r\a\n\t\/\.\l\o\c\a\l\/\b\i\n\:* ]]
+ '[' '!' -d /home/vagrant/.local/bin ']'
+ mv tilt /home/vagrant/.local/bin/tilt
+ set +x
Tilt installed!
For the latest Tilt news, subscribe: https://tilt.dev/subscribe
Run `tilt up` to start.
ctlptl
$ echo $?
0
```
Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🎉

@brancz brancz merged commit cc19351 into parca-dev:main Apr 6, 2022
@javierhonduco javierhonduco deleted the dev-add-arm64-support branch April 6, 2022 17:25
@manojVivek
Copy link
Contributor

@all-contributors Please add @javierhonduco for code.

@allcontributors
Copy link
Contributor

@manojVivek

I've put up a pull request to add @javierhonduco! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants