File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ set -eou pipefail
19
19
20
20
source " $( cd " $( dirname $0 ) " && pwd) /../_shared.sh"
21
21
22
+ buildtarget=${BUILDTARGET:- }
22
23
buildflags=${BUILDFLAGS:- }
23
24
cargoflags=${CARGOFLAGS:- }
24
25
rustflags=${RUSTFLAGS:- }
@@ -47,20 +48,20 @@ build() {
47
48
noelware::startGroup " Build / Linux ($arch )"
48
49
49
50
echo " ~> Performing compilation of binary \` hazel\` "
50
- echo " $ RUSTFLAGS=\" $RUSTFLAGS \" $cargo $cargoflags build --release --locked --bin hazel $buildflags "
51
+ echo " $ RUSTFLAGS=\" $RUSTFLAGS \" $cargo $cargoflags build --release --locked --bin hazel --target $buildtarget $buildflags "
51
52
52
- " $cargo $cargoflags build --release --locked --bin hazel $ buildflags"
53
+ " $cargo " $cargoflags build --release --locked --bin hazel --target $buildtarget $ buildflags
53
54
if [ $? -ne 0 ]; then
54
55
exit $?
55
56
fi
56
57
57
58
pushd " $root /.result" > /dev/null
58
59
59
- echo " $ mv $root /target/$buildtarget /release/hazel $root /.result/hazel-darwin -$arch "
60
- mv " $root /target/$buildtarget /release/hazel" " $root /.result/hazel-darwin -$arch "
60
+ echo " $ mv $root /target/$buildtarget /release/hazel $root /.result/hazel-linux -$arch "
61
+ mv " $root /target/$buildtarget /release/hazel" " $root /.result/hazel-linux -$arch "
61
62
62
63
echo " Generating checksums for binary"
63
- shasum -a 256 " hazel-darwin -$arch " > ./" hazel-darwin -$arch .sha256"
64
+ shasum -a 256 " hazel-linux -$arch " > ./" hazel-linux -$arch .sha256"
64
65
65
66
popd
66
67
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ build() {
50
50
echo " ~> Performing compilation of binary \` hazel\` "
51
51
echo " $ RUSTFLAGS=\" $RUSTFLAGS \" $cargo $cargoflags build --release --locked --target $buildtarget --bin hazel $buildflags "
52
52
53
- " $cargo $cargoflags build --release --locked --bin hazel $buildflags "
53
+ " $cargo $cargoflags build --release --locked --bin hazel --target $buildtarget $buildflags "
54
54
if [ $? -ne 0 ]; then
55
55
exit $?
56
56
fi
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ jobs:
111
111
if : matrix.runner != 'windows-latest'
112
112
run : .ci/${{contains(matrix.runner, 'apple-') && 'macos' || 'linux'}}/release
113
113
env :
114
- BUILDFLAGS : " --target ${{matrix.target}} ${{matrix.buildflags}}"
114
+ BUILDTARGET : ${{matrix.target}}
115
+ BUILDFLAGS : ${{matrix.buildflags}}
115
116
CARGOFLAGS : ${{env.CARGOFLAGS}}
116
117
RUSTFLAGS : ${{matrix.rustflags}}
117
118
CARGO : ${{matrix.cross && 'cross' || 'cargo'}}
Original file line number Diff line number Diff line change @@ -519,6 +519,7 @@ config.toml
519
519
! Cargo.lock
520
520
! src /bin
521
521
.direnv /
522
+ .result /
522
523
result
523
524
.data /
524
525
data /
You can’t perform that action at this time.
0 commit comments