ISO-repository/.gitea/workflows/builder.yaml

50 lines
1.5 KiB
YAML
Raw Normal View History

2024-06-25 12:00:48 +00:00
name: Build ISO images
on:
workflow_dispatch:
release:
types: [released]
2024-06-25 12:37:33 +00:00
issue_comment:
2022-05-23 08:30:27 +00:00
2024-06-25 12:00:48 +00:00
jobs:
build-x86:
container:
2024-06-25 12:54:45 +00:00
image: node:22.3-bookworm
2024-06-25 12:00:48 +00:00
runs-on: [arm64]
2024-06-25 12:37:33 +00:00
# For manual trigger via Gitea while they implement the workflow_dispatch
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run x86' || github.event.comment.body == '!actions run all' }}
2024-06-25 12:00:48 +00:00
steps:
2024-06-25 12:43:59 +00:00
- name: Checkout repository
2024-06-25 12:47:28 +00:00
uses: actions/checkout@v4
2024-06-25 12:21:24 +00:00
- name: Create ISO
run: |
apt update
apt install -y xorriso curl genisoimage cpio
2024-06-25 13:52:53 +00:00
./build/amd64.sh
2024-06-25 12:21:24 +00:00
- name: Upload ISO image
uses: actions/upload-artifact@v4
with:
name: halis-debian-11.6.0-amd64.iso
path: halis-debian-11.6.0-amd64.iso
2024-06-25 12:00:48 +00:00
build-arm64:
2024-06-25 12:21:24 +00:00
container:
2024-06-25 12:54:45 +00:00
image: node:22.3-bookworm
2024-06-25 12:21:24 +00:00
runs-on: [arm64]
2024-06-25 12:37:33 +00:00
# For manual trigger via Gitea while they implement the workflow_dispatch
if: ${{ github.event.pull_request != '' || github.event.pusher != '' || github.event.comment.body == '!actions run arm' || github.event.comment.body == '!actions run all' }}
2024-06-25 12:21:24 +00:00
steps:
2024-06-25 12:43:59 +00:00
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
2024-06-25 12:21:24 +00:00
- name: Create ISO
run: |
apt update
apt install -y curl xz-utils file sudo
2024-06-25 13:52:53 +00:00
./build/arm64.sh
2024-06-25 12:21:24 +00:00
- name: Upload ISO image
uses: actions/upload-artifact@v4
with:
path: ./*.img.xz