Skip to content

Commit

Permalink
Merge pull request #3213 from bcressey/sdk-bump
Browse files Browse the repository at this point in the history
update SDK to 0.33.0
  • Loading branch information
bcressey authored Jun 22, 2023
2 parents a4a1039 + 7633bc0 commit 776fd30
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 368 deletions.
6 changes: 0 additions & 6 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ runs:
tools/.crates2.json
tools/target
key: ${{ hashFiles('.github/workflows/cache.yml') }}-${{ runner.os }}-${{ env.OS_ARCH }}-${{ hashFiles('tools/Cargo.lock') }}
- name: Setup pinned rust version
uses: actions-rs/toolchain@v1
with:
toolchain: 1.69.0
override: true
components: rustfmt, clippy
- run: cargo install --locked --version 0.36.0 cargo-make
shell: bash
- run: cargo install --locked --version 0.6.2 cargo-sweep
Expand Down
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,15 @@ RUN --mount=target=/host \
&& ( [ -d /host/licenses ] \
&& cp -r /host/licenses ./rpmbuild/BUILD/ \
|| mkdir ./rpmbuild/BUILD/licenses )
COPY ./macros/${ARCH} ./macros/shared ./macros/rust ./macros/cargo ./packages/${PACKAGE}/ .
COPY ./packages/${PACKAGE}/ .
RUN rpmdev-setuptree \
&& cat ${ARCH} shared rust cargo > .rpmmacros \
&& echo "%_cross_variant ${VARIANT}" >> .rpmmacros \
&& echo "%_cross_variant ${VARIANT}" > .rpmmacros \
&& echo "%_cross_variant_platform ${VARIANT_PLATFORM}" >> .rpmmacros \
&& echo "%_cross_variant_runtime ${VARIANT_RUNTIME}" >> .rpmmacros \
&& echo "%_cross_variant_family ${VARIANT_FAMILY}" >> .rpmmacros \
&& echo "%_cross_variant_flavor ${VARIANT_FAMILY:-none}" >> .rpmmacros \
&& echo "%_cross_repo_root_json %{_builddir}/root.json" >> .rpmmacros \
&& echo "%_topdir /home/builder/rpmbuild" >> .rpmmacros \
&& rm ${ARCH} shared rust cargo \
&& echo "%bcond_without $(V=${VARIANT_PLATFORM,,}; echo ${V//-/_})_platform" > .bconds \
&& echo "%bcond_without $(V=${VARIANT_RUNTIME,,}; echo ${V//-/_})_runtime" >> .bconds \
&& echo "%bcond_without $(V=${VARIANT_FAMILY,,}; echo ${V//-/_})_family" >> .bconds \
Expand All @@ -123,6 +121,7 @@ RUN --mount=target=/host \
--repofrompath repo,./rpmbuild/RPMS \
--enablerepo 'repo' \
--nogpgcheck \
--forcearch "${ARCH}" \
builddep rpmbuild/SPECS/${PACKAGE}.spec

# We use the "nocache" writable space to generate code where necessary, like the variant-
Expand All @@ -135,6 +134,7 @@ RUN --mount=source=.cargo,target=/home/builder/.cargo \
--mount=source=sources,target=/home/builder/rpmbuild/BUILD/sources \
rpmbuild -ba --clean \
--undefine _auto_set_build_flags \
--define "_target_cpu ${ARCH}" \
rpmbuild/SPECS/${PACKAGE}.spec

# =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^=
Expand Down Expand Up @@ -173,7 +173,8 @@ RUN --mount=target=/host \
--nogpgcheck \
--downloadonly \
--downloaddir . \
install $(printf "bottlerocket-${ARCH}-%s\n" ${PACKAGES}) \
--forcearch "${ARCH}" \
install $(printf "bottlerocket-%s\n" ${PACKAGES}) \
&& mv *.rpm /local/rpms \
&& createrepo_c /local/rpms \
&& echo ${NOCACHE}
Expand Down Expand Up @@ -231,7 +232,7 @@ USER root
RUN --mount=target=/host \
mkdir -p /local/migrations \
&& find /host/build/rpms/ -maxdepth 1 -type f \
-name "bottlerocket-${ARCH}-migrations-*.rpm" \
-name "bottlerocket-migrations-*.rpm" \
-not -iname '*debuginfo*' \
-exec cp '{}' '/local/migrations/' ';' \
&& /host/tools/rpm2migrations \
Expand All @@ -258,7 +259,7 @@ RUN --mount=target=/host \
mkdir -p /local/archives \
&& KERNEL="$(printf "%s\n" ${PACKAGES} | awk '/^kernel-/{print $1}')" \
&& find /host/build/rpms/ -maxdepth 1 -type f \
-name "bottlerocket-${ARCH}-${KERNEL}-archive-*.rpm" \
-name "bottlerocket-${KERNEL}-archive-*.rpm" \
-exec cp '{}' '/local/archives/' ';' \
&& /host/tools/rpm2kmodkit \
--archive-dir=/local/archives \
Expand Down
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BUILDSYS_PRETTY_NAME = "Bottlerocket OS"
# SDK name used for building
BUILDSYS_SDK_NAME="bottlerocket"
# SDK version used for building
BUILDSYS_SDK_VERSION="v0.32.0"
BUILDSYS_SDK_VERSION="v0.33.0"
# Site for fetching the SDK
BUILDSYS_REGISTRY="public.ecr.aws/bottlerocket"

Expand Down
10 changes: 0 additions & 10 deletions macros/aarch64

This file was deleted.

44 changes: 0 additions & 44 deletions macros/cargo

This file was deleted.

28 changes: 0 additions & 28 deletions macros/rust

This file was deleted.

Loading

0 comments on commit 776fd30

Please sign in to comment.