@@ -49,19 +49,10 @@ jobs:
49
49
- name : Install toolchain
50
50
run : rustup toolchain install stable --profile minimal --target ${{ matrix.target.rust-target }} --no-self-update
51
51
52
- - name : Install cross
53
- run : cargo install cross --git https://github.com/cross-rs/cross
54
- if : ${{ matrix.target.os != 'windows' && matrix.target.os != 'darwin' }}
55
-
56
52
- uses : Swatinem/rust-cache@v2
57
53
58
- - name : Build using cross
59
- run : cross build --release --target ${{ matrix.target.rust-target }}
60
- if : ${{ matrix.target.os != 'windows' && matrix.target.os != 'darwin' }}
61
-
62
- - name : Build using cargo
54
+ - name : Build
63
55
run : cargo build --release --target ${{ matrix.target.rust-target }}
64
- if : matrix.target.os == 'windows' || matrix.target.os == 'darwin'
65
56
66
57
- name : Set .exe extension for Windows
67
58
id : set_extension
@@ -118,23 +109,9 @@ jobs:
118
109
- name : Install toolchain
119
110
run : rustup toolchain install stable --profile minimal --target ${{ matrix.target.rust-target }} --no-self-update
120
111
121
- - name : Install cross
122
- run : cargo install cross --git https://github.com/cross-rs/cross
123
-
124
112
- name : Install cargo-deb
125
113
run : cargo install cargo-deb
126
114
127
- - name : Configure cargo for arm64
128
- if : ${{ matrix.target.arch == 'arm64' }}
129
- run : |
130
- mkdir -p ~/.cargo/
131
- touch ~/.cargo/config
132
- echo "[target.aarch64-unknown-linux-gnu]\nobjcopy = { path = \"aarch64-linux-gnu-objcopy\" }\nstrip = { path = \"aarch64-linux-gnu-strip\" }\n" > ~/.cargo/config
133
-
134
- export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
135
- export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc
136
- export CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++
137
-
138
115
- uses : Swatinem/rust-cache@v2
139
116
140
117
- uses : robinraju/release-downloader@v1.11
0 commit comments