Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 25, 2024
1 parent 84e0dd9 commit c7abc72
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .github/workflows/build_img.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ci
name: build image

on:
push:
workflow_dispatch:

jobs:
modify-rpi-image:
Expand All @@ -23,17 +23,7 @@ jobs:
cache: true
mount-repository: true
env-vars: TEST
run: |
# Copy project README to root directory
cp -v /mounted-github-repo/README.md /home/pi/README.md
chown -v pi:pi /home/pi/README.md
# Install pygame
apt-get update
apt-get install -y --no-install-recommends python3-pygame
# Should print 'hi mom!'
echo "$TEST"
script-path: build_raspOVOS.sh
-
name: Print outputs
shell: bash
Expand All @@ -42,11 +32,14 @@ jobs:
echo 'image-size: ${{ steps.create-image.outputs.image-size }}'
echo 'image-sha256sum: ${{ steps.create-image.outputs.image-sha256sum }}'
-
name: Upload build artifact
uses: actions/upload-artifact@v4
name: Upload to releases
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: built-image
path: ${{ steps.create-image.outputs.image-path }}
if-no-files-found: error
retention-days: 2
compression-level: 0 # Already compressed with xz above
file: steps.create-image.outputs.image-path
tags: true
draft: true
overwrite: true
prerelease: true
verbose: true
10 changes: 10 additions & 0 deletions build_raspOVOS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copy project README to root directory
cp -v /mounted-github-repo/README.md /home/pi/README.md
chown -v pi:pi /home/pi/README.md

# Install pygame
apt-get update
apt-get install -y --no-install-recommends python3-pygame

# Should print 'hi mom!'
echo "$TEST"

0 comments on commit c7abc72

Please sign in to comment.