diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..8945b22 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + push: + branches: + - 'main' + - 'feature/*' + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Cache Docker layers + uses: actions/cache@v3 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + + - name: Build Docker Image + run: docker build --output=out . + + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml deleted file mode 100644 index 2b11178..0000000 --- a/.github/workflows/pre-commit.yaml +++ /dev/null @@ -1,14 +0,0 @@ -name: pre-commit - -on: - pull_request: - push: - branches: [main] - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.1 diff --git a/bootloader/.dockerignore b/bootloader/.dockerignore new file mode 100644 index 0000000..fdd2db4 --- /dev/null +++ b/bootloader/.dockerignore @@ -0,0 +1,5 @@ +.dep +build +.idea +out +Dockerfile diff --git a/bootloader/.gitignore b/bootloader/.gitignore index 40b0a8f..afb25a2 100644 --- a/bootloader/.gitignore +++ b/bootloader/.gitignore @@ -1,3 +1,4 @@ cmake-build-debug/ build/ .dep/ +out/ diff --git a/bootloader/.idea/codeStyles/Project.xml b/bootloader/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..5316267 --- /dev/null +++ b/bootloader/.idea/codeStyles/Project.xml @@ -0,0 +1,106 @@ + + + + + + + + \ No newline at end of file diff --git a/bootloader/.idea/codeStyles/codeStyleConfig.xml b/bootloader/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/bootloader/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/bootloader/.idea/editor.xml b/bootloader/.idea/editor.xml index 66c8679..473c2bb 100644 --- a/bootloader/.idea/editor.xml +++ b/bootloader/.idea/editor.xml @@ -1,7 +1,7 @@ -