-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.06 KB
/
build-iso-cuda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build ISO (CUDA)
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cleanup
uses: rokibhasansagar/slimhub_actions@main
with:
retain: "docker_imgcache,docker_buildkit,docker_imgcache"
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build image
uses: addnab/docker-run-action@v3
with:
image: archlinux:latest
options: --privileged --volume ${{ github.workspace }}:/workspace
run: |
# Refresh package databases
pacman --sync --noconfirm --refresh
# Upgrade system
pacman --sync --noconfirm --sysupgrade
# Install required packages
pacman --sync --noconfirm --needed archiso
# Build image
mkarchiso -v -m iso -w /workspace/work -o /workspace/out /workspace
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: archiso-output
path: out/