Skip to content
Open

CI #4

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion package/garlicui/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $(TARGET): $(wildcard *.c)
translations: $(MO_FILES)

%.mo: %.po
msgfmt -o $@ $<
$(HOST_DIR)/bin/msgfmt -o $@ $<

clean:
-rm -rf $(TARGET) $(MO_FILES) *.o