@@ -3,18 +3,47 @@ members = ["cargo:."]
3
3
4
4
# Config for 'dist'
5
5
[dist ]
6
+
6
7
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7
8
cargo-dist-version = " 0.28.0"
9
+
8
10
# CI backends to support
9
11
ci = " github"
12
+
10
13
# The installers to generate for each app
11
14
installers = [" shell" ]
15
+
12
16
# Target platforms to build apps for (Rust target-triple syntax)
13
- targets = [" aarch64-apple-darwin" , " aarch64-unknown-linux-gnu" , " x86_64-apple-darwin" , " x86_64-unknown-linux-gnu" , " x86_64-pc-windows-msvc" ]
17
+ targets = [
18
+ " aarch64-apple-darwin" ,
19
+ " aarch64-unknown-linux-gnu" ,
20
+ " x86_64-apple-darwin" ,
21
+ " x86_64-unknown-linux-gnu" ,
22
+ " x86_64-pc-windows-msvc"
23
+ ]
24
+
14
25
# Path that installers should place binaries in
15
26
install-path = " CARGO_HOME"
27
+
16
28
# Whether to install an updater program
17
29
install-updater = false
18
30
31
+ # #######################################################################
32
+
33
+ # Custom runner set-up to workaround ubuntu-20.04 deprecation
34
+ # See https://github.com/axodotdev/cargo-dist/issues/1760#issuecomment-2769218034
35
+
19
36
[dist .github-custom-runners ]
20
37
global = " ubuntu-latest"
38
+
39
+ [dist .github-custom-runners .x86_64-unknown-linux-gnu ]
40
+ runner = " ubuntu-latest"
41
+
42
+ [dist .github-custom-runners .aarch64-unknown-linux-gnu ]
43
+ runner = " ubuntu-latest"
44
+
45
+ [dist .github-custom-runners .aarch64-pc-windows-msvc ]
46
+ # https://github.com/axodotdev/cargo-dist/blob/c8ba950c63f9c38c77782912ec6cdb6807bd0fbd/cargo-dist/src/backend/ci/github.rs#L678-L688
47
+ runner = " ubuntu-latest"
48
+ host = " x86_64-unknown-linux-gnu"
49
+ container = { image = " messense/cargo-xwin" , host = " x86_64-unknown-linux-musl" , package_manager = " apt" }
0 commit comments