Skip to content

Commit de72705

Browse files
committed
ci: build garlicos
1 parent 5ba62cc commit de72705

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.git
2+
.github
3+
.vscode

.github/workflows/garlicos.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: workflow_dispatch
2+
jobs:
3+
build:
4+
runs-on: ubuntu-latest
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
arch: [aarch64, armhf, mipsel]
9+
steps:
10+
- uses: jlumbroso/free-disk-space@main
11+
with:
12+
large-packages: false
13+
- uses: actions/checkout@v4
14+
- name: build
15+
run: |
16+
docker build . -t garlicos-${{ matrix.arch }} --build-arg config=${{ matrix.arch }}
17+
docker run --rm garlicos-${{ matrix.arch }} tar -cf - output/images/rootfs.f2fs | gzip -9 > ${{ matrix.arch }}-rootfs.tar.gz
18+
- uses: actions/upload-artifact@v3
19+
with:
20+
path: ${{ matrix.arch }}-rootfs.tar.gz
21+
name: ${{ matrix.arch }}-rootfs.tar.gz

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ARG base=20230207.1123
2+
FROM registry.gitlab.com/buildroot.org/buildroot/base:${base}
3+
COPY . .
4+
ARG config
5+
RUN cp configs/garlicos_${config}_defconfig .config
6+
RUN make

0 commit comments

Comments
 (0)