Build rust-analyzer on FreeBSD.
The official FreeBSD package rust-analyzer crashes. I suspect this is because its built for rust stable which conflicts with the rust-nightly I have installed.
This commit is contained in:
@@ -2,5 +2,28 @@
|
||||
package:
|
||||
name:
|
||||
- rust-nightly
|
||||
- rust-analyzer
|
||||
state: present
|
||||
|
||||
- name: Create directories
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- "/opt/rust-analyzer"
|
||||
|
||||
- name: Clone rust-analyzer Source
|
||||
git:
|
||||
repo: "https://github.com/rust-lang/rust-analyzer.git"
|
||||
dest: /opt/rust-analyzer
|
||||
version: "2023-05-01"
|
||||
force: true
|
||||
diff: false
|
||||
|
||||
- name: Build rust-analyzer
|
||||
command: "cargo build --release"
|
||||
args:
|
||||
creates: "/opt/rust-analyzer/target/release/rust-analyzer"
|
||||
chdir: /opt/rust-analyzer
|
||||
|
||||
Reference in New Issue
Block a user