-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (54 loc) · 1.7 KB
/
lts_no_dkms_iso.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
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Build ArchLinux zfs iso with LTS-Kernel and native ZFS Package
on:
schedule: # arch relases are published first day of the month
- cron: '50 22 1 * *'
workflow_dispatch:
pull_request:
types:
- closed
push:
jobs:
lts_no_dkms_iso:
if: ${{ github.event.pull_request.merged == true ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
github.event.repository.default_branch }}
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
options: --privileged
steps:
- name: Set timestamp tag
id: timetag
run: echo "timestamp=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- name: Check out codebase
uses: actions/checkout@v4
- name: Install requirements
run: |
pacman -Sy
pacman -S --noconfirm archlinux-keyring archiso git
pacman-key --init
pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
- name: Prepare configuration
run: |
echo -e 'ASK_TO_DUMP_ISO=0
ASK_TO_RUN_ISO=0
ASK_TO_UPLOAD_ISO=0
IS_FORCED=1
KERNEL="linux-lts"
USE_DKMS=0' > configuration/build.sh
- name: Build lts iso
run: |
chmod +x ./*.sh
ls
bash ./build.sh --verbose
- name: Upload a release
uses: softprops/action-gh-release@v1
with:
name: archlinux-archzfs-linux-lts-${{ env.timestamp }}
tag_name: ${{ env.timestamp }}
prerelease: ${{ github.event_name != 'schedule' }}
files: |
dynamic_data/out/*