Skip to content

Commit

Permalink
heaptrack builds non musl
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Oct 2, 2023
1 parent f1853e1 commit 1a9cf17
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ resources/safe
*.orig
*.key
*.csr
heaptracks/*
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bin_name: safenode
org: maidsafe
branch: main
bin_archive_filename: "{{ bin_name }}-{{ testnet_name }}-x86_64-unknown-linux-musl.tar.gz"
bin_archive_filename: "{{ bin_name }}-{{ testnet_name }}-x86_64.tar.gz"
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
- name: "build {{ bin_name }} binary"
ansible.builtin.shell: |
source $HOME/.cargo/env
cargo build --target x86_64-unknown-linux-musl --release --bin {{bin_name}}
CARGO_PROFILE_RELEASE_DEBUG=true cargo build --release --bin {{bin_name}}
args:
chdir: "{{ ansible_env.HOME }}/safe_network"
creates: "{{ ansible_env.HOME }}/safe_network/target/x86_64-unknown-linux-musl/release/{{bin_name}}"
creates: "{{ ansible_env.HOME }}/safe_network/target/release/{{bin_name}}"
executable: /bin/bash

- name: copy binary to tmp directory
ansible.builtin.command:
chdir: "{{ ansible_env.HOME }}/safe_network/target/x86_64-unknown-linux-musl/release"
chdir: "{{ ansible_env.HOME }}/safe_network/target/release"
cmd: cp {{bin_name}} /tmp/

- name: archive binary
Expand Down
2 changes: 1 addition & 1 deletion resources/ansible/roles/faucet/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
org: maidsafe
branch: main
faucet_archive_filename: faucet-{{ testnet_name }}-x86_64-unknown-linux-musl.tar.gz
faucet_archive_filename: faucet-{{ testnet_name }}-x86_64.tar.gz
faucet_archive_url: https://sn-node.s3.eu-west-2.amazonaws.com/{{ org }}/{{ branch }}/{{ faucet_archive_filename }}
faucet_archive_dest_path: /usr/local/bin
2 changes: 1 addition & 1 deletion resources/ansible/roles/node/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
is_genesis: False
otlp_endpoint: http://dev-testnet-infra-f2016fb1217aaf30.elb.eu-west-2.amazonaws.com:4317
node_archive_filename: safenode-latest-x86_64-unknown-linux-musl.tar.gz
node_archive_filename: safenode-latest-x86_64.tar.gz
node_archive_url: https://sn-node.s3.eu-west-2.amazonaws.com/{{ node_archive_filename }}
node_archive_dest_path: /usr/local/bin
node_port: 12000
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ impl TestnetDeploy {
&mut extra_vars,
"node_archive_url",
&format!(
"https://sn-node.s3.eu-west-2.amazonaws.com/{}/{}/safenode-{}-x86_64-unknown-linux-musl.tar.gz",
"https://sn-node.s3.eu-west-2.amazonaws.com/{}/{}/safenode-{}-x86_64.tar.gz",
repo_owner,
branch,
name),
Expand All @@ -744,7 +744,7 @@ impl TestnetDeploy {
&mut extra_vars,
"node_archive_url",
&format!(
"https://github.com/maidsafe/safe_network/releases/download/sn_node-v{version}/safenode-{version}-x86_64-unknown-linux-musl.tar.gz",
"https://github.com/maidsafe/safe_network/releases/download/sn_node-v{version}/safenode-{version}-x86_64.tar.gz",
),
);
}
Expand Down

0 comments on commit 1a9cf17

Please sign in to comment.