File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 13
13
- mips64-unknown-linux-gnuabi64
14
14
- x86_64-apple-darwin
15
15
- aarch64-apple-darwin
16
+ - x86_64-pc-windows-gnu
16
17
- x86_64-pc-windows-msvc
17
18
include :
18
19
- target : x86_64-unknown-linux-gnu
25
26
os : macos-latest
26
27
- target : aarch64-apple-darwin
27
28
os : macos-latest
29
+ - target : x86_64-pc-windows-gnu
30
+ os : ubuntu-22.04
28
31
- target : x86_64-pc-windows-msvc
29
32
os : windows-latest
30
33
steps :
46
49
sudo apt-get update -y
47
50
sudo apt-get install -y --no-install-recommends gcc-mips64-linux-gnuabi64 libc6-dev-mips64-cross
48
51
shell : bash
52
+ - name : Install GCC (x86_64-pc-windows-gnu)
53
+ if : ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
54
+ run : |
55
+ sudo apt-get update -y
56
+ sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64
57
+ shell : bash
49
58
- name : Build for ${{ matrix.target }}
50
59
run : |
51
60
cargo build --manifest-path testcrate/Cargo.toml --target ${{ matrix.target }} --release
Original file line number Diff line number Diff line change @@ -106,6 +106,12 @@ impl Build {
106
106
"aarch64-apple-darwin" => {
107
107
make. env ( "MACOSX_DEPLOYMENT_TARGET" , "11.0" ) ;
108
108
}
109
+ _ if target. contains ( "linux" ) => {
110
+ make. env ( "TARGET_SYS" , "Linux" ) ;
111
+ }
112
+ _ if target. contains ( "windows" ) => {
113
+ make. env ( "TARGET_SYS" , "Windows" ) ;
114
+ }
109
115
_ => { }
110
116
}
111
117
You can’t perform that action at this time.
0 commit comments