-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
39 lines (33 loc) · 1.04 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tasks.test]
command = "cargo"
args = ["test", "--verbose"]
[tasks.run]
command = "cargo"
args = ["run"]
env = { RUST_LOG = "DEBUG" }
# haven't tried cargo build --target yet but cross seems simple
# also check https://github.com/houseabsolute/actions-rust-cross for github action
[tasks.build-linux]
command = "./scripts/cross-build"
args = ["x86_64-unknown-linux-gnu"]
# env = { RUSTFLAGS = "-D warnings" }
[tasks.build-windows]
command = "./scripts/cross-build"
args = ["x86_64-pc-windows-gnu"]
# env = { RUSTFLAGS = "-D warnings" }
# https://github.com/cross-rs/cross-toolchains
# Des this need to be executed on mac?
# rustup target add x86_64-apple-darwin
# doesn't work for now
[tasks.build-macos]
command = "cargo"
args = ["build", "--target", "aarch64-apple-darwin", "--release"]
condition = { platforms = ["mac"] }
# for some reason tasks.build autoinvokes "Execute Command: "cargo" "build" "--all-features""
[tasks.all]
description = "Builds the project for multiple platforms"
dependencies = [
"build-linux",
"build-windows",
"build-macos"
]