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