Skip to content

Commit

Permalink
ci: build garlicos
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdreyer committed Nov 26, 2023
1 parent 5ba62cc commit 10bd1da
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.github
.vscode
21 changes: 21 additions & 0 deletions .github/workflows/garlicos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [aarch64, armhf, mipsel]
steps:
- uses: jlumbroso/free-disk-space@main
with:
large-packages: false
- uses: actions/checkout@v4
- name: build
run: |
docker build . -t garlicos-${{ matrix.arch }} --build-arg config=${{ matrix.arch }}
docker run --rm garlicos-${{ matrix.arch }} tar -cf - output/images/rootfs.f2fs | gzip -9 > ${{ matrix.arch }}-rootfs.tar.gz
- uses: actions/upload-artifact@v3
with:
path: ${{ matrix.arch }}-rootfs.tar.gz
name: ${{ matrix.arch }}-rootfs.tar.gz
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG base=20230207.1123
FROM registry.gitlab.com/buildroot.org/buildroot/base:${base}
COPY . .
ARG config
RUN make garlicos_${config}_defconfig
RUN make

0 comments on commit 10bd1da

Please sign in to comment.