Skip to content

Commit 8adf1de

Browse files
Add ISO buiild checker Workflow.
1 parent 48e2100 commit 8adf1de

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

.devcontainer.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/build-check.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check if ISO can be built
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
schedule:
10+
# Run the workflow every day at midnight
11+
- cron: 0 0 * * *
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest # Use a standard runner
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Arch Linux Container
22+
run: |
23+
docker run --privileged --name arch-container -d -v ${{ github.workspace }}:/workdir archlinux:latest sleep infinity
24+
25+
- name: Build ISO in Arch Container
26+
run: |
27+
docker exec arch-container bash -c "
28+
pacman -Syu --noconfirm &&
29+
pacman -S --noconfirm git archiso grub &&
30+
cd /workdir &&
31+
mkarchiso -v -w workdir/ -o out/ .
32+
"

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: Build ISO
22

33
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
84
workflow_dispatch:
95
schedule:
10-
# Run the workflow on the 1st of every month at midnight
6+
# Run the workflow every day at midnight
117
- cron: 0 0 * * *
128

139
jobs:

0 commit comments

Comments
 (0)