Skip to content

Add help to setup script and slim option. #438

Add help to setup script and slim option.

Add help to setup script and slim option. #438

Workflow file for this run

name: ci
on: [push]
env:
ARTIFACT_PATH: ./raspi/build_dpkg/ugglan.deb
ARTIFACT_NAME: ugglan.deb
ARTIFACT_MIME_TYPE: application/x-tar
RELEASE_NAME: Release latest
RELEASE_TAG: latest
DOCKER_BUILDKIT: 1
jobs:
build-test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Setup docker buildx
uses: docker/setup-buildx-action@v2
-
name: Setup qemu
uses: docker/setup-qemu-action@v2
with:
platforms: linux/arm/v7
-
name: Build documentation
run: make -C ./doc
-
name: Install tools & unit test
run: make -C ./tools
-
name: Run clang-format
run: make -C ./raspi -f Makefile_clang clang_format
-
name: Run clang-tidy
run: make -C ./raspi -f Makefile_clang clang_tidy
-
name: Compile (host) raspi & unit test
run: make -C ./raspi -f Makefile_tests
-
name: Compile (target) raspi & build dpkg
run: make -C ./raspi -f Makefile_dpkg
-
name: Cache (upload) release artifact
uses: actions/cache@v2
with:
path: ${{ env.ARTIFACT_PATH }}
key: ${{ runner.os }}-artifact-${{ github.sha }}
release:
runs-on: ubuntu-latest
needs: build-test
if: github.ref == 'refs/heads/main'
steps:
-
name: Cache (download) release artifact
uses: actions/cache@v2
with:
path: ${{ env.ARTIFACT_PATH }}
key: ${{ runner.os }}-artifact-${{ github.sha }}
-
name: Remove previous release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: ${{ env.RELEASE_TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Create release
id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}
release_name: ${{ env.RELEASE_NAME }}
-
name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ${{ env.ARTIFACT_PATH }}
asset_name: ${{ env.ARTIFACT_NAME }}
asset_content_type: ${{ env.ARTIFACT_MIME_TYPE }}