Skip to content

Commit

Permalink
Add init CI/CD to warm up a cache
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkbatya committed Dec 15, 2023
1 parent 1e43bbe commit 81f3e58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 .
2 changes: 1 addition & 1 deletion linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81f3e58

Please sign in to comment.