2024-08-10 16:20:06 +02:00
|
|
|
name: Build Canary NVIDIA amd64-v3 ISO
|
2024-08-01 20:18:32 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2024-08-10 16:20:06 +02:00
|
|
|
- '.github/build-canary-v3-nvidia-iso'
|
2024-08-01 20:18:32 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
volumes:
|
|
|
|
- /proc:/proc
|
|
|
|
options: --privileged -it --cap-add=sys_admin --cap-add mknod --device=/dev/fuse --security-opt seccomp=unconfined --security-opt label=disable
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install Some essentials
|
|
|
|
run: apt-get update -y && apt-get install -y wget npm rsync nodejs
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install SSH key
|
|
|
|
uses: shimataro/ssh-key-action@v2
|
|
|
|
with:
|
|
|
|
key: ${{ secrets.SSH_KEY }}
|
|
|
|
name: id_rsa
|
|
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
|
|
if_key_exists: replace
|
|
|
|
|
2024-08-10 16:20:06 +02:00
|
|
|
- name: Set ISO Info
|
|
|
|
run: sed "s/#DISTNAME#/PikaOS-Canary-NVIDIA/g" -i ./info.sh && sed "s/#ARCH#/amd64-v3/g" -i ./info.sh
|
|
|
|
|
2024-08-01 20:18:32 +02:00
|
|
|
- name: Get ISO Build Dependencies
|
|
|
|
run: ./get_iso_build_dep.sh
|
|
|
|
|
2024-08-10 16:20:06 +02:00
|
|
|
- name: Enable NVIDIA hooks
|
|
|
|
run: cp -vf ./nvidia-hooks/* ./hooks/
|
|
|
|
|
2024-08-01 20:18:32 +02:00
|
|
|
- name: Generate Image ROOTFS from PikaOS Docker image
|
2024-08-10 16:20:06 +02:00
|
|
|
run: ./generate_roofs_from_canaryv3_docker.sh
|
2024-08-01 20:18:32 +02:00
|
|
|
|
|
|
|
- name: Build ISO
|
|
|
|
run: ./build.sh
|