Skip to content

Commit f8cdbdb

Browse files
authored
Separate nFPM generation
Signed-off-by: Alexander Meiler <[email protected]>
1 parent 1d6b480 commit f8cdbdb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,18 @@ jobs:
4848
ninja-version: 1.10.2
4949
- name: Install nFPM
5050
run: echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | sudo tee /etc/apt/sources.list.d/goreleaser.list && sudo apt update && sudo apt install nfpm
51-
- name: Prepare nFPM config
52-
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_sample.yaml nfpm.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm.yaml && mkdir ./output
51+
- name: Prepare nFPM DEB config
52+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_deb_sample.yaml nfpm_deb.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_deb.yaml && mkdir ./output
53+
- name: Prepare nFPM RPM config
54+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_rpm_sample.yaml nfpm_rpm.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_rpm.yaml
55+
- name: Prepare nFPM Arch config
56+
run: cd /home/runner/work/libfprint/libfprint && cp nfpm_arch_sample.yaml nfpm_arch.yaml && sed -i "s/COMMITID/$(git rev-parse --short HEAD)/g" nfpm_arch.yaml && mkdir ./output
5357
- name: Generating DEB package
54-
run: nfpm pkg --packager deb --target ./output/
58+
run: nfpm pkg --packager deb --config ./nfpm_deb.yaml --target ./output/
5559
- name: Generating RPM package
56-
run: nfpm pkg --packager rpm --target ./output/
60+
run: nfpm pkg --packager rpm --config ./nfpm_rpm.yaml --target ./output/
5761
- name: Generating ArchLinux package
58-
run: nfpm pkg --packager archlinux --target ./output/
62+
run: nfpm pkg --packager archlinux --config ./nfpm_arch.yaml --target ./output/
5963
- uses: actions/upload-artifact@v3
6064
with:
6165
name: meson-build-artifacts

0 commit comments

Comments
 (0)