Skip to content

test

test #26

Workflow file for this run

---
name: rpios arm64
on:
push:
#paths:
# - 'rpios/*'
# - 'Makefile'
# - '.github/workflows/rpios_arm64.yml'
tags:
- "*"
pull_request:
#paths:
# - 'rpios/*'
# - 'Makefile'
# - '.github/workflows/rpios_arm64.yml'
workflow_dispatch:
jobs:
build-arm64:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@main
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y unzip xz-utils wget curl qemu-user-static binfmt-support
- name: Build image
run: make build-rpios-arm64
- uses: actions/upload-artifact@main
with:
name: retronas-rpios-arm64-${{ github.sha }}.zip
path: rpios/tmp/*arm64-lite.img
overwrite: true
if-no-files-found: error
- name: Download Artifact
if: github.ref_type == 'tag'
uses: actions/download-artifact@main
with:
name: retronas-rpios-arm64-${{ github.sha }}.zip
path: rpios/tmp/retronas-rpios-arm64-${{ github.sha }}.zip
- name: Uncompress Artifact
if: github.ref_type == 'tag'
run: |
cd rpios/tmp
unzip retronas-rpios-arm64-${{ github.sha }}.zip
- name: Compress Image
if: github.ref_type == 'tag'
run: |
cd rpios/tmp
xz -z -6 *arm64-lite.img
- uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files:
rpios/tmp/*arm64-lite.img.xz