From 81f3e585fea865e3288bfd4cdfb55ed7220898bf Mon Sep 17 00:00:00 2001 From: DrunkBatya Date: Fri, 15 Dec 2023 07:31:26 -0500 Subject: [PATCH] Add init CI/CD to warm up a cache --- .github/workflows/build.yml | 17 +++++++++++++++++ linux/Dockerfile | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d7ed923 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: 'Build' + +on: + push: + branches: + - dev + tags: + - '*' + +jobs: + build-linux: + runs-on: [self-hosted, FlipperZeroShell, Linux, X64] + steps: + - name: 'Build linux toolchain' + run: | + cd linux + docker build -t flipperzero-toolchain-linux . diff --git a/linux/Dockerfile b/linux/Dockerfile index 865533b..0689de8 100644 --- a/linux/Dockerfile +++ b/linux/Dockerfile @@ -102,7 +102,7 @@ ADD scripts/relink.sh /usr/bin/ ADD scripts/build-linux-flipper-tools.sh /toolchain/src/ RUN bash /toolchain/src/build-linux-flipper-tools.sh -FROM debian:11 as flipperzero-toolchain +FROM debian:11 as flipperzero-toolchain-linux COPY --from=flipperzero-toolchain-linux-binutils /toolchain/linux-output-root /toolchain/linux-output-root COPY --from=flipperzero-toolchain-linux-gdb /toolchain/linux-output-root /toolchain/linux-output-root COPY --from=flipperzero-toolchain-linux-gcc /toolchain/linux-output-root /toolchain/linux-output-root