Skip to content

Commit

Permalink
Merge pull request #1017 from tjkirch/ecs-applier-build
Browse files Browse the repository at this point in the history
Build ecs-settings-applier in same cargo_build
  • Loading branch information
tjkirch authored Aug 8, 2020
2 parents 14451f6 + edfce16 commit 8e41807
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions packages/os/os.spec
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,15 @@ mkdir bin
-p updog \
-p logdog \
-p growpart \
%if "%{_cross_variant}" == "aws-ecs-1"
-p ecs-settings-applier \
%endif
%{nil}

%cargo_build_static --manifest-path %{_builddir}/sources/Cargo.toml \
-p apiclient \
%{nil}

# Build conditional ECS component
%if "%{_cross_variant}" == "aws-ecs-1"
%cargo_build --manifest-path %{_builddir}/sources/Cargo.toml \
-p ecs-settings-applier \
%{nil}
%endif

# Build the migrations
for crate in $(find %{_builddir}/sources/api/migration/migrations -name 'Cargo.toml'); do
%cargo_build_static --manifest-path "${crate}"
Expand All @@ -205,20 +201,13 @@ for p in \
thar-be-settings thar-be-updates servicedog host-containers \
storewolf settings-committer \
migrator \
signpost updog logdog;
do
install -p -m 0755 ${HOME}/.cache/%{__cargo_target}/release/${p} %{buildroot}%{_cross_bindir}
done


signpost updog logdog \
%if "%{_cross_variant}" == "aws-ecs-1"
for p in \
ecs-settings-applier;
do
ecs-settings-applier \
%endif
; do
install -p -m 0755 ${HOME}/.cache/%{__cargo_target}/release/${p} %{buildroot}%{_cross_bindir}
done
%endif


for p in apiclient ; do
install -p -m 0755 ${HOME}/.cache/%{__cargo_target_static}/release/${p} %{buildroot}%{_cross_bindir}
Expand Down

0 comments on commit 8e41807

Please sign in to comment.