This repository was archived by the owner on Jan 13, 2025. It is now read-only.
feat: add license file #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired from https://github.com/PhotonVision/photon-pi-gen/blob/master/config | |
name: build-docker | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
# required to run on this specific version of Ubuntu | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: APT update | |
run: | | |
sudo apt update | |
sudo apt install binfmt-support | |
sudo apt install qemu qemu-user-static | |
sudo update-binfmts --enable | |
# Build image with docker | |
- name: Run build-docker.sh | |
run: ./build-docker.sh | |
# Print output directory files | |
- name: List output files | |
run: ls -lh deploy | |
- name: Upload built image | |
uses: actions/upload-artifact@v4 | |
with: | |
name: built-image | |
path: ./deploy/image_*presentium-full.zip | |
if-no-files-found: error | |
- name: Upload debug artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: debug-files | |
path: | | |
./deploy/*presentium-full.info | |
./deploy/build.log | |
if-no-files-found: error | |
release: | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: [build] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: built-image | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: '**/*' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |